Module: check_mk
Branch: master
Commit: c1366f477668201bc6aea7413835820636b29266
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c1366f47766820…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Mar 14 09:14:29 2012 +0100
FIX: Fixed encoding problem in "custom notification" message
---
ChangeLog | 3 +++
web/plugins/views/commands.py | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e892377..28ac828 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
WATO:
* FIX: deletion of automation accounts now works
+ Multisite
+ * FIX: Fixed encoding problem in "custom notification" message
+
1.2.0b1:
Core, Setup, etc.:
* new tool 'livedump' for dumping configuration and status
diff --git a/web/plugins/views/commands.py b/web/plugins/views/commands.py
index 5b94590..1e088c4 100644
--- a/web/plugins/views/commands.py
+++ b/web/plugins/views/commands.py
@@ -197,7 +197,7 @@ config.declare_permission("action.customnotification",
def command_custom_notification(cmdtag, spec, row):
if html.var("_customnotification"):
- comment = html.var("_cusnot_comment")
+ comment = html.var_utf8("_cusnot_comment")
broadcast = html.get_checkbox("_cusnot_broadcast") and 1 or 0
forced = html.get_checkbox("_cusnot_forced") and 2 or 0
command = "SEND_CUSTOM_%s_NOTIFICATION;%s;%s;%s;%s" % \