changeset 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 012ad48a07fa
children a7178d4ed8ee
files mercurial/hgweb/hgwebdir_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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("//", "/")) + '/'