Module: check_mk
Branch: master
Commit: 7b07765f1fc300cf6076773b77a2b97afb4c2371
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7b07765f1fc300…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 8 14:15:11 2014 +0100
#1709 FIX Fix exception when a non-Ascii character is part of the variable part of a view
title
---
.werks/1709 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/visuals.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/1709 b/.werks/1709
new file mode 100644
index 0000000..62a3480
--- /dev/null
+++ b/.werks/1709
@@ -0,0 +1,9 @@
+Title: Fix exception when a non-Ascii character is part of the variable part of a view
title
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.5i7
+Date: 1418044482
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index fd8d079..5e46b51 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -185,6 +185,7 @@
* 1680 FIX: Fixed various dashlet designer position/resizing issues...
* 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
WATO:
* 1170 Added buttons to move rules to top/bottom of the list to ruleset edit dialog
diff --git a/web/htdocs/visuals.py b/web/htdocs/visuals.py
index ca95af8..9346253 100644
--- a/web/htdocs/visuals.py
+++ b/web/htdocs/visuals.py
@@ -1179,7 +1179,7 @@ def get_single_info_keys(visual):
def get_singlecontext_html_vars(visual):
vars = []
for key in get_single_info_keys(visual):
- vars.append((key, html.var(key, visual['context'].get(key))))
+ vars.append((key, html.var_utf8(key, visual['context'].get(key))))
return vars
# Collect all visuals that share a context with visual. For example