Module: check_mk
Branch: master
Commit: 2f99ab4fce11167cd76bbc9e418f843c2d3738d9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2f99ab4fce1116…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 8 14:57:44 2014 +0100
#1691 FIX Fixed problem when watching BI aggregations with umlauts in titles or group
name
---
.werks/1691 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/bi.py | 6 +++---
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/1691 b/.werks/1691
new file mode 100644
index 0000000..92c6635
--- /dev/null
+++ b/.werks/1691
@@ -0,0 +1,9 @@
+Title: Fixed problem when watching BI aggregations with umlauts in titles or group name
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.5i7
+Date: 1418047044
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 0fc2540..96ab0c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -186,6 +186,7 @@
* 1683 FIX: Replaced a lot of old GIF images with better looking PNG images
* 1687 FIX: Add visual to dashboard menu can now be closed with click anywhere on
page
* 1709 FIX: Fix exception when a non-Ascii character is part of the variable part of
a view title
+ * 1691 FIX: Fixed problem when watching BI aggregations with umlauts in titles or
group name
WATO:
* 1170 Added buttons to move rules to top/bottom of the list to ruleset edit dialog
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 9fcbac7..753a76a 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -1405,7 +1405,7 @@ def ajax_set_assumption():
save_assumptions()
def ajax_save_treestate():
- path_id = html.var("path")
+ path_id = html.var_utf8("path")
current_ex_level, path = path_id.split(":", 1)
current_ex_level = int(current_ex_level)
@@ -1419,9 +1419,9 @@ def ajax_save_treestate():
save_ex_level(current_ex_level)
def ajax_render_tree():
- aggr_group = html.var("group")
+ aggr_group = html.var_utf8("group")
reqhosts = [ tuple(sitehost.split('#')) for sitehost in
html.var("reqhosts").split(',') ]
- aggr_title = html.var("title")
+ aggr_title = html.var_utf8("title")
omit_root = not not html.var("omit_root")
boxes = not not html.var("boxes")
only_problems = not not html.var("only_problems")