Module: check_mk
Branch: master
Commit: 45016930c504dfc65b313e2b3e6d056a2239f851
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=45016930c504df…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Mar 3 14:08:43 2012 +0100
Fix URL parsing: last occurrance of a variable as precedence
---
web/htdocs/index.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/index.py b/web/htdocs/index.py
index 7079202..3c75de6 100644
--- a/web/htdocs/index.py
+++ b/web/htdocs/index.py
@@ -69,8 +69,10 @@ def read_get_vars(req):
req.listvars[varname].append(value)
else:
req.listvars[varname] = [ req.vars[varname], value ]
- else:
- req.vars[varname] = value
+ # In the single-value-store the last occurrance of a variable
+ # has precedence. That makes appending variables to the current
+ # URL simpler.
+ req.vars[varname] = value
def read_cookies(req):
req.cookies = Cookie.get_cookies(req)