Module: check_mk
Branch: master
Commit: 3633ffc5c4f2b12da1108b2f66e835540ba8c869
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3633ffc5c4f2b1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jul 23 08:06:36 2018 +0200
6360 FIX Fixed HTML fragments in global settings titles
This regression was introduced with 1.5.0b9.
Change-Id: Ie4b24c12773cf806ac79dfb7c2eaf4d829c55205
---
.werks/6360 | 11 +++++++++++
cmk/gui/forms.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6360 b/.werks/6360
new file mode 100644
index 0000000..9e71bc5
--- /dev/null
+++ b/.werks/6360
@@ -0,0 +1,11 @@
+Title: Fixed HTML fragments in global settings titles
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1532195726
+
+This regression was introduced with 1.5.0b9.
diff --git a/cmk/gui/forms.py b/cmk/gui/forms.py
index 7d49b08..6cd5424 100644
--- a/cmk/gui/forms.py
+++ b/cmk/gui/forms.py
@@ -277,7 +277,7 @@ def section(title = None, checkbox = None, id = None, simple=False,
hide = False
if legend:
html.open_td(class_=["legend", "simple" if simple else
None])
if title:
- html.open_div(class_=["title", "withcheckbox" if checkbox
else None], title=title)
+ html.open_div(class_=["title", "withcheckbox" if checkbox
else None], title=html.strip_tags(title))
html.write(title)
html.span('.'*100, class_="dots")
html.close_div()