Module: check_mk
Branch: master
Commit: e83c897970334544058327f98ca3601abecd17fe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e83c8979703345…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jun 20 15:37:58 2014 +0200
Interprete \n and \\ in notification context from CMC
Conflicts:
modules/notify.py
---
modules/notify.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/notify.py b/modules/notify.py
index c17c3d2..53fe4df 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -1660,7 +1660,7 @@ def raw_context_from_string(data):
try:
for line in data.split('\n'):
varname, value = line.strip().split("=", 1)
- context[varname] = value
+ context[varname] = value.replace(r"\n",
"\n").replace("\\\\", "\\")
except Exception, e: # line without '=' ignored or alerted
if opt_debug:
raise