Mercurial > public > src > rhodecode
changeset 1284:e61b7ba293db beta
changed the way of generating url for came_from
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 05 Apr 2011 02:04:59 +0200 |
parents | a671db5bdd58 |
children | efee58510c1a |
files | rhodecode/lib/auth.py |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/auth.py Mon Apr 04 20:01:45 2011 +0200 +++ b/rhodecode/lib/auth.py Tue Apr 05 02:04:59 2011 +0200 @@ -330,14 +330,7 @@ return func(*fargs, **fkwargs) else: log.warn('user %s NOT authenticated', user.username) - - p = '' - if request.environ.get('SCRIPT_NAME') != '/': - p += request.environ.get('SCRIPT_NAME') - - p += request.environ.get('PATH_INFO') - if request.environ.get('QUERY_STRING'): - p += '?' + request.environ.get('QUERY_STRING') + p = url.current() log.debug('redirecting to login page with %s', p) return redirect(url('login_home', came_from=p))