www-apps/trac-acct_mgr: add redirect fix
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1727 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
13
www-apps/trac-acct_mgr/files/redirect-fix.patch
Normal file
13
www-apps/trac-acct_mgr/files/redirect-fix.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: acct_mgr/web_ui.py
|
||||
===================================================================
|
||||
--- acct_mgr/web_ui.py (revision 4132)
|
||||
+++ acct_mgr/web_ui.py (working copy)
|
||||
@@ -185,7 +185,7 @@
|
||||
if req.authname and req.authname != 'anonymous':
|
||||
if req.session.get('force_change_passwd', False):
|
||||
redirect_url = req.href.prefs('account')
|
||||
- if req.path_info != redirect_url:
|
||||
+ if req.href(req.path_info) != redirect_url:
|
||||
req.redirect(redirect_url)
|
||||
return (template, data, content_type)
|
||||
|
||||
Reference in New Issue
Block a user