Module: check_mk
Branch: master
Commit: c2f2e564c1e132c91416218d28f39c6ce03f5690
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c2f2e564c1e132…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Apr 4 08:01:21 2018 +0200
5943 FIX Fixed broken PDF export of host/service history views
Change-Id: I9d6b3a4803403b893273a0c3353f27a01ed9ea19
---
.werks/5943 | 11 +++++++++++
web/htdocs/views.py | 5 +++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/5943 b/.werks/5943
new file mode 100644
index 0000000..b84b788
--- /dev/null
+++ b/.werks/5943
@@ -0,0 +1,11 @@
+Title: Fixed broken PDF export of host/service history views
+Level: 1
+Component: reporting
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.5.0i4
+Date: 1522821525
+
+This issue seemed to be introduced with 1.4.0p26.
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 8a46903..d1016ce 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -810,8 +810,9 @@ class Cell(object):
if isinstance(txt, HTML):
txt = "%s" % txt
- txt = html.escaper.unescape_attributes(txt)
- txt = html.strip_tags(txt)
+ elif not isinstance(txt, tuple):
+ txt = html.escaper.unescape_attributes(txt)
+ txt = html.strip_tags(txt)
return css_classes, txt
except Exception: