Module: check_mk
Branch: master
Commit: cb0782f056c222f9ecf4adc3966d94e900ecb5b4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cb0782f056c222…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Feb 28 15:17:58 2017 +0100
4450 FIX quicksearch: fixed exception when using special characters
Change-Id: Ia4fb94ecaf245cd139efb931b206ffaaae35256f
---
.werks/4450 | 10 ++++++++++
web/htdocs/sidebar.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4450 b/.werks/4450
new file mode 100644
index 0000000..32dde24
--- /dev/null
+++ b/.werks/4450
@@ -0,0 +1,10 @@
+Title: quicksearch: fixed exception when using special characters
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1488291410
+Class: fix
+
+
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index a5b997d..e520939 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -712,7 +712,7 @@ def to_regex(s):
def ajax_search():
- q = html.var('q').strip()
+ q = html.var_utf8('q').strip()
if not q:
return