Module: check_mk
Branch: master
Commit: f2ab3d4b5600c1bf87fd3dc81a6a0ac57fb0a280
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f2ab3d4b5600c1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 2 08:37:36 2015 +0100
Also allowing xhtml <br> tags in exception texts
---
web/htdocs/htmllib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 689519d..6fedc3c 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -1002,7 +1002,7 @@ class html:
# <b>, <tt>, <i> to be part of the exception message. The tags
# are escaped first and then fixed again after attrencode.
msg = self.attrencode(obj)
- msg = re.sub(r'<(/?)(b|tt|i|br|pre|a|sup|p|li|ul|ol)>',
r'<\1\2>', msg)
+ msg = re.sub(r'<(/?)(b|tt|i|br(?:
/)?|pre|a|sup|p|li|ul|ol)>', r'<\1\2>', msg)
# Also repair link definitions
msg = re.sub(r'<a href="(.*)">',
r'<a href="\1">', msg)