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:
geos_one
2009-12-23 12:19:23 +00:00
parent e78f616b75
commit 9893737a2b
4 changed files with 21 additions and 3 deletions

View 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)