Module: check_mk
Branch: master
Commit: 6e5d6a12e300d354c17bdd8d86a67e5242c905c7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6e5d6a12e300d3…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 24 08:31:16 2015 +0100
Fixed HTML encoding on crash report page
---
web/htdocs/crashed_check.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/crashed_check.py b/web/htdocs/crashed_check.py
index 76ddcd4..5eda8ed 100644
--- a/web/htdocs/crashed_check.py
+++ b/web/htdocs/crashed_check.py
@@ -36,7 +36,7 @@ def fetch_file_from_tar(tardata, filename):
def output_box(title, content):
html.write('<h3>%s</h3>' % title)
html.write('<div class=log_output>%s</div>'
- % html.attrencode(content).replace("\n",
"<br>"))
+ % html.attrencode(content).replace("\n",
"<br>").replace(' ', ' '))
def page_crashed_check():
html.header(_("Crashed Check Report"), stylesheets=["status",
"pages",])
@@ -90,7 +90,7 @@ def page_crashed_check():
html.context_button(_("Submit Report"), mailto_url, "email")
html.end_context_buttons()
- output_box(_("Crash report"), trace.replace(" ",
" "))
+ output_box(_("Crash report"), trace)
if agent_output:
output_box(_("Agent output"), agent_output)