Module: check_mk
Branch: master
Commit: e6b44a300d0c76c2c5d8d9ba74b3f421c69c6059
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e6b44a300d0c76…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 21 10:04:39 2016 +0100
4145 FIX Fixed exception when setting output_format in wrong case
Change-Id: I23f3f3c0b1ffcc99192209b53590e2b6a6a50be2
---
.werks/4145 | 9 +++++++++
ChangeLog | 1 +
web/htdocs/html_mod_python.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4145 b/.werks/4145
new file mode 100644
index 0000000..754a0f2
--- /dev/null
+++ b/.werks/4145
@@ -0,0 +1,9 @@
+Title: Fixed exception when setting output_format in wrong case
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.4.0i4
+Date: 1482311051
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 2773636..7b1c519 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
* 4143 FIX: Fixed possible log spam "MKAuthException: Invalid credentials"
in web.log...
* 4004 FIX: Fixed exception when viewing availability of BI aggregations...
* 4144 FIX: Sidebar: Bottom of last snapin was not 100% visible
+ * 4145 FIX: Fixed exception when setting output_format in wrong case
WATO:
* 4142 New extended search dialog for rulesets and rules...
diff --git a/web/htdocs/html_mod_python.py b/web/htdocs/html_mod_python.py
index 308cd91..63fe99b 100644
--- a/web/htdocs/html_mod_python.py
+++ b/web/htdocs/html_mod_python.py
@@ -68,7 +68,7 @@ class html_mod_python(htmllib.html):
self.set_http_header("Cache-Control", "no-cache")
self.init_mobile()
- self.set_output_format(self.var("output_format", "html"))
+ self.set_output_format(self.var("output_format",
"html").lower())
def client_request_timeout(self):