mercurial/hgweb/hgwebdir_mod.py
changeset 6046 588ad9227b63
parent 5993 948a41e77902
child 6210 942287cb1f57
--- a/mercurial/hgweb/hgwebdir_mod.py	Fri Feb 08 11:55:17 2008 +0100
+++ b/mercurial/hgweb/hgwebdir_mod.py	Fri Feb 08 15:42:28 2008 +0100
@@ -177,7 +177,7 @@
                 if u.configbool("web", "hidden", untrusted=True):
                     continue
 
-                parts = [req.env['PATH_INFO'].strip('/'), name]
+                parts = [req.env['PATH_INFO'].rstrip('/'), name]
                 if req.env['SCRIPT_NAME']:
                     parts.insert(0, req.env['SCRIPT_NAME'])
                 url = ('/'.join(parts).replace("//", "/")) + '/'