Module: check_mk
Branch: master
Commit: 18da30a25e539d1551c269935d9213e48a1a2b39
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18da30a25e539d…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Wed Aug 26 18:20:07 2015 +0200
bugfix: hovering over the graph icon failed for services that contained a backslash (i.e.
windows paths)
in passing strings to the js hover function (on icons) one level of escaping is lost
---
web/plugins/icons/builtin.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/icons/builtin.py b/web/plugins/icons/builtin.py
index 1895e6c..2e10c19 100644
--- a/web/plugins/icons/builtin.py
+++ b/web/plugins/icons/builtin.py
@@ -322,7 +322,7 @@ def pnp_icon(row, what):
hover_content_func = 'pnp_hover_contents(\'%s\')' %
pnp_popup_url(row, what)
else:
hover_content_func = 'hover_graph(\'%s\', \'%s\',
\'%s\')' % \
- (row['site'], row['host_name'],
row.get('service_description', '_HOST_'))
+ (row['site'], row['host_name'],
row.get('service_description', '_HOST_').replace("\\",
"\\\\"))
return '<a href="%s" onmouseover="show_hover_menu(event,
%s)" ' \
'onmouseout="hide_hover_menu()">%s</a>' % (url,
hover_content_func, html.render_icon('pnp', ''))