hgweb: fix breakage on manifest subdirs from path cleaning
authorMatt Mackall <mpm@selenic.com>
Sun, 29 Jan 2006 11:17:54 +1300
changeset 1649 beb7da710c8a
parent 1648 80640ef93aec
child 1650 f2ebd5251e88
hgweb: fix breakage on manifest subdirs from path cleaning
mercurial/hgweb.py
--- a/mercurial/hgweb.py
+++ b/mercurial/hgweb.py
@@ -580,6 +580,8 @@ class hgweb(object):
         files = {}
 
         p = path[1:]
+        if p and p[-1] != "/":
+            p += "/"
         l = len(p)
 
         for f,n in mf.items():