Module: check_mk
Branch: master
Commit: 1fe69b6da9d40c66d8489e27c9eed2dc5392b451
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1fe69b6da9d40c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Sep 25 13:43:29 2018 +0200
Improved error handling of invalid input vars in some situations
Change-Id: I2ac7e39d72dc44499b40f332ceceddb1f3227e43
---
cmk/gui/login.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmk/gui/login.py b/cmk/gui/login.py
index c7d8a9b..973290b 100644
--- a/cmk/gui/login.py
+++ b/cmk/gui/login.py
@@ -297,8 +297,8 @@ def check_auth(request):
def check_auth_automation():
- secret = html.var("_secret").strip()
- user_id = html.get_unicode_input("_username").strip()
+ secret = html.var("_secret", "").strip()
+ user_id = html.get_unicode_input("_username", "").strip()
html.del_var('_username')
html.del_var('_secret')
if secret and user_id and "/" not in user_id: