diff mercurial/hgweb/hgweb_mod.py @ 4348:b633f470944e

hgweb: fix rfind bug in PATH_INFO handling
author Matt Mackall <mpm@selenic.com>
date Mon, 16 Apr 2007 09:51:50 -0500
parents 26a2fa9433b8
children 69109aa0cddd
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sun Apr 15 18:40:22 2007 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Mon Apr 16 09:51:50 2007 -0500
@@ -716,7 +716,7 @@
                     # strip leading /
                     pi = pi[1:]
                     if pi:
-                        root = root[:root.rfind(root, pi)]
+                        root = root[:root.rfind(pi)]
                     if req.env.has_key('REPO_NAME'):
                         rn = req.env['REPO_NAME'] + '/'
                         root += rn