From 1a2d11560fea3113c1a000b4bad13582cd8cd7af Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 29 Nov 2012 09:52:48 -0600 Subject: [PATCH] do not redirect after auth.logout() if next is None --- VERSION | 2 +- gluon/contrib/webclient.py | 2 -- gluon/tools.py | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 4e432e06..a25762fa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-11-27 11:28:54) stable +Version 2.2.1 (2012-11-29 09:52:05) stable diff --git a/gluon/contrib/webclient.py b/gluon/contrib/webclient.py index 59f0e679..ec8d5fd2 100644 --- a/gluon/contrib/webclient.py +++ b/gluon/contrib/webclient.py @@ -150,8 +150,6 @@ class WebClient(object): match = self.session_regex.match(cookie) if match: name = match.group('name') - print repr(cookie) - print name, self.sessions.get(name,None), value if name in self.sessions and self.sessions[name] != value: raise RuntimeError('Broken sessions %s' % name) self.sessions[name] = value diff --git a/gluon/tools.py b/gluon/tools.py index af8e92e7..5b56da78 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -2142,7 +2142,8 @@ class Auth(object): current.session.auth = None current.session.flash = self.messages.logged_out - redirect(next) + if not next is None: + redirect(next) def register( self,