Module: check_mk
Branch: master
Commit: b6c12e84f3044ccbba0d3eee46858c180d9bd125
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b6c12e84f3044c…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Sep 24 09:05:50 2015 +0200
fixed search fields in tables didn't accept non-ascii characters like german umlauts
---
web/htdocs/table.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index 7470435..932e296 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -185,7 +185,7 @@ def end():
if table["searchable"]:
# Search is always lower case -> case insensitive
- search_term = html.var('_%s_search' % table_id,
table_opts.get('search', '')).lower()
+ search_term = html.var_utf8('_%s_search' % table_id,
table_opts.get('search', '')).lower()
if search_term:
html.set_var('_%s_search' % table_id, search_term)
table_opts['search'] = search_term # persist