Module: check_mk
Branch: master
Commit: 63a69ee591aec6da5f26b6f62aeedd87b1b5adf6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=63a69ee591aec6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Apr 5 13:00:14 2013 +0200
Fixed json formating in snapin refresh code
---
web/htdocs/sidebar.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index ea46437..2f84e65 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -312,7 +312,7 @@ def ajax_snapin():
snapin_code.append(html.drain())
html.unplug()
- html.write('[%s]' % ','.join([ "'%s'" % s for s
in snapin_code]))
+ html.write('[%s]' % ','.join([ '"%s"' %
s.replace('"', '\\"').replace('\n', '') for s in
snapin_code]))
except Exception, e:
html.flush()
html.unplug()