fix to let test-hgwebdir pass

fixes a regression introduced in changeset 3c6008c8685a
This commit is contained in:
Michele Cella 2008-02-08 15:42:28 +01:00
parent 9c2727d318
commit d5755b1f51

View File

@ -177,7 +177,7 @@ class hgwebdir(object):
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("//", "/")) + '/'