fixed wrong validation of record_id in globals

This commit is contained in:
mdipierro committed 2013-09-09 14:28:58 -05:00
1 parent 69d5fb1d64
commit 16b95b8132
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.09.09.14.16.32 Version 2.6.0-development+timestamp.2013.09.09.14.28.03
+1 -1
View File
@@ -915,7 +915,7 @@ class Session(Storage):
return return
(record_id, sep, unique_key) = response.session_id.partition(':') (record_id, sep, unique_key) = response.session_id.partition(':')
if record_id.isdigit() and long(record_id)>1: if record_id.isdigit() and long(record_id):
new_unique_key = web2py_uuid() new_unique_key = web2py_uuid()
row = table(record_id) row = table(record_id)
if row and row.unique_key==unique_key: if row and row.unique_key==unique_key: