diff mercurial/hgweb/hgwebdir_mod.py @ 6046:588ad9227b63

fix to let test-hgwebdir pass fixes a regression introduced in changeset f25070ecf334
author Michele Cella <michele.cella@gmail.com>
date Fri, 08 Feb 2008 15:42:28 +0100
parents 948a41e77902
children 942287cb1f57
line wrap: on
line diff
--- 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("//", "/")) + '/'