Module: check_mk
Branch: master
Commit: 857580ad6912f2f4ee3e8563e69099d6752cd580
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=857580ad6912f2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 14 14:24:01 2018 +0200
6091 FIX Fixed possible UnicodeDecodeError with special characters in the start_url
parameter
Change-Id: If0025490de3266d87df723732e65a728df12f8e6
---
.werks/6091 | 11 +++++++++++
web/htdocs/main.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6091 b/.werks/6091
new file mode 100644
index 0000000..5bec975
--- /dev/null
+++ b/.werks/6091
@@ -0,0 +1,11 @@
+Title: Fixed possible UnicodeDecodeError with special characters in the start_url
parameter
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1526300572
+
+
diff --git a/web/htdocs/main.py b/web/htdocs/main.py
index c1a93d2..ab741ed 100644
--- a/web/htdocs/main.py
+++ b/web/htdocs/main.py
@@ -31,7 +31,7 @@ import re
def page_index():
default_start_url = config.user.get_attribute("start_url") or
config.start_url
- start_url = html.var("start_url", default_start_url).strip()
+ start_url = html.var_utf8("start_url", default_start_url).strip()
# Prevent redirecting to absolute URL which could be used to redirect
# users to compromised pages.