Module: check_mk
Branch: master
Commit: fe23c9a17762a3e1900a68eec9363febe449fdeb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fe23c9a17762a3…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jul 26 14:23:56 2016 +0200
Fix recent exception in WATO GIT commit messages
---
web/htdocs/watolib.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 049f1b7..b88d836 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -204,6 +204,8 @@ def log_entry(linkinfo, action, message, logfilename, user_id =
None):
def log_audit(linkinfo, what, message, user_id = None):
if config.wato_use_git:
+ if isinstance(message, HTML):
+ message = html.strip_tags(message.value)
g_git_messages.append(message)
log_entry(linkinfo, what, message, "audit.log", user_id)