Module: check_mk
Branch: master
Commit: a86d4c62b3e14484234b434a6b315d929f3d6a71
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a86d4c62b3e144…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 1 11:36:36 2014 +0200
Fixed problem in yesterdays change in transaction id handling
---
web/htdocs/htmllib.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 847d338..d897b80 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -994,12 +994,16 @@ class html:
def transaction_valid(self):
if not self.has_var("_transid"):
return False
+
id = self.var("_transid")
- if not id or self.ignore_transids:
+ if self.ignore_transids and (not id or id == '-1'):
return True # automation
+ if '/' not in id:
+ return False
+
# Normal user/password auth user handling
- timestamp, rand = id.split("/")
+ timestamp, rand = id.split("/", 1)
# If age is too old (one week), it is always
# invalid: