Skip to content

Commit

Permalink
Follow-up to [3050] to fix authentication for tracd with a base path.…
Browse files Browse the repository at this point in the history
… Thanks to Rui Lopes for the patch. Closes #2932.

git-svn-id: http://trac.edgewall.org/intertrac/log:/trunk@3053 af82e41b-90c4-0310-8c96-b1721e28e2e2
  • Loading branch information
cmlenz committed Mar 27, 2006
1 parent 494b33c commit 4e86c69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions THANKS
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
* Ian Leader ian.leader@line.co.uk
* Christopher Lenz cmlenz@gmx.de
* Ivo Looser ivo.looser@gmail.com
* Rui Lopes rgl ruilopes com
* Angel Marin anmar@gmx.net
* Keir Mierle keir@cs.utoronto.ca
* James Moger jamesm@transonic.com
Expand Down
5 changes: 3 additions & 2 deletions trac/web/standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,9 @@ def handle_one_request(self):
environ = self.setup_environ()
path_info = environ.get('PATH_INFO', '')
path_parts = filter(None, path_info.split('/'))
if len(path_parts) > 1 and path_parts[1] == 'login':
env_name = path_parts[0]
base_path = environ['trac.base_path']
if len(path_parts) > len(base_path)+1 and path_parts[len(base_path)+1] == 'login':
env_name = path_parts[len(base_path)]
if env_name:
auth = self.server.auths.get(env_name,
self.server.auths.get('*'))
Expand Down

0 comments on commit 4e86c69

Please sign in to comment.