Changeset - e61b7ba293db
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-04-05 02:04:59
marcin@python-works.com
changed the way of generating url for came_from
1 file changed with 1 insertions and 8 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/auth.py
Show inline comments
 
@@ -330,14 +330,7 @@ class LoginRequired(object):
 
            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))
0 comments (0 inline, 0 general)