Module: check_mk
Branch: master
Commit: 0887b015d69746f5a53b281304af9b376eecfc41
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0887b015d69746…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 27 10:05:55 2017 +0200
5424 FIX Fixed possible exception during logout when having cookies with invalid format
for other sites
Change-Id: I7c62cda64e387989be842373bb4a318c8dccc6a8
---
.werks/5424 | 11 +++++++++++
web/htdocs/login.py | 3 +++
2 files changed, 14 insertions(+)
diff --git a/.werks/5424 b/.werks/5424
new file mode 100644
index 0000000..61e09e4
--- /dev/null
+++ b/.werks/5424
@@ -0,0 +1,11 @@
+Title: Fixed possible exception during logout when having cookies with invalid format for
other sites
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1509091524
+
+
diff --git a/web/htdocs/login.py b/web/htdocs/login.py
index 4350cee..5095d87 100644
--- a/web/htdocs/login.py
+++ b/web/htdocs/login.py
@@ -253,6 +253,9 @@ def auth_cookie_is_valid(cookie_name):
return True
except MKAuthException:
return False
+ except Exception:
+ log_exception()
+ return False
def check_auth(mod_python_req):