Module: check_mk
Branch: master
Commit: 71e3bf8d889a87d6aa7753e9714343014815ab7e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=71e3bf8d889a87…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 11 08:51:37 2014 +0100
Fixed encoding exception in "add to visual" menu on host pages
---
web/htdocs/htmllib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index d0c0b16..3d72fff 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -887,7 +887,7 @@ class html:
if self.myfile == "view":
mode_name = self.var('mode') == "availability" and
"availability" or "view"
- encoded_vars = self.attrencode([ (k, v != None and v or '') for k,v
in self.page_context.items() ])
+ encoded_vars = self.attrencode([ (k, v != None and str(v) or '') for
k,v in self.page_context.items() ])
h += '<div class="visualadd"><a
class="visualadd" href="javascript:void(0)" ' \
'onclick="toggle_add_to_visual(event, this, \'%s\', %s,
{\'name\': \'%s\'})">' \
'<img class=statusicon
src="images/status_add_dashlet.png"
title="%s"></a></div>\n' % \