Module: check_mk
Branch: master
Commit: 6cb3d2151e2cba5eaa722a6371346351e6fa8f2f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6cb3d2151e2cba…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sat Jun 17 10:45:13 2017 +0200
4759 FIX Fixed some wrong escaped links in help texts
Change-Id: I044d6fd6b211d5367407c98f19222f264bf8269f
---
.werks/4759 | 10 ++++++++++
web/htdocs/htmllib.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4759 b/.werks/4759
new file mode 100644
index 0000000..04dad6f
--- /dev/null
+++ b/.werks/4759
@@ -0,0 +1,10 @@
+Title: Fixed some wrong escaped links in help texts
+Level: 1
+Component: multisite
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1497689097
+Class: fix
+
+
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index eb39b9d..3351d39 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -112,7 +112,7 @@ class Escaper(object):
def __init__(self):
super(Escaper, self).__init__()
self._unescaper_text = re.compile(r'<(/?)(h1|h2|b|tt|i|u|br(?:
/)?|nobr(?: /)?|pre|a|sup|p|li|ul|ol)>')
- self._unescaper_href = re.compile(r'<a
href="(.*?)">')
+ self._unescaper_href = re.compile(r'<a
href=(?:"|\')(.*?)(?:"|\')>')
# Encode HTML attributes. Replace HTML syntax with HTML text.