From 16b95b81324a6b27b904a32aa8c2175709174f23 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Mon, 9 Sep 2013 14:28:58 -0500 Subject: [PATCH] fixed wrong validation of record_id in globals --- VERSION | 2 +- gluon/globals.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 598dfb2a..5ecd89d5 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/globals.py b/gluon/globals.py index 9d49002f..6ea2ebc4 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -915,7 +915,7 @@ class Session(Storage): return (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() row = table(record_id) if row and row.unique_key==unique_key: