fix to let test-hgwebdir pass
fixes a regression introduced in changeset
f25070ecf334
--- 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("//", "/")) + '/'