Skip to content

Commit 3af7486

Browse files
author
Justus Pendleton
committed
lowercase tracker name during roundup-server's cgi handling
We lowercase the tracker name when we store it in the config, we might as well lowercase it on the incoming GET so it will match what we've stored. This doesn't make the web interface truly case sensitive (which would require a lot more work) but it will allow users to do something like: roundup-server TaskManager=/var/tm wget http://server/TaskManager and get something nicer than a 404. This fixes [SF#1143803]
1 parent 1f4b9df commit 3af7486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/scripts/roundup_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
"""Command-line script that runs a server over roundup.cgi.client.
1919
20-
$Id: roundup_server.py,v 1.93 2007-09-09 16:03:13 jpend Exp $
20+
$Id: roundup_server.py,v 1.94 2007-09-25 04:27:12 jpend Exp $
2121
"""
2222
__docformat__ = 'restructuredtext'
2323

@@ -312,7 +312,7 @@ def inner_run_cgi(self):
312312

313313
# figure the tracker
314314
l_path = rest.split('/')
315-
tracker_name = urllib.unquote(l_path[1])
315+
tracker_name = urllib.unquote(l_path[1]).lower()
316316

317317
# handle missing trailing '/'
318318
if len(l_path) == 2:

0 commit comments

Comments
 (0)