Module: check_mk
Branch: master
Commit: 24b43fed9fed1a7a5c29a00247f48ab6ccbd89f0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=24b43fed9fed1a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 7 13:41:21 2015 +0200
permissive attrencode: allow <h2> tag
---
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 664ae20..ebd1663 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -1360,7 +1360,7 @@ class html:
# for messages where we still want to have formating options.
def permissive_attrencode(self, obj):
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'<(/?)(h2|b|tt|i|br(?:
/)?|pre|a|sup|p|li|ul|ol)>', r'<\1\2>', msg)
# Also repair link definitions
return re.sub(r'<a href="(.*)">',
r'<a href="\1">', msg)