mercurial/hgweb/hgwebdir_mod.py
changeset 5585 b34028d52e7e
parent 5579 e15f7db0f0ee
parent 5584 d2831a5d5947
child 5601 8279cb841467
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Dec 02 17:15:03 2007 +0100
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Dec 02 19:45:38 2007 +0100
@@ -17,7 +17,7 @@
 class hgwebdir(object):
     def __init__(self, config, parentui=None):
         def cleannames(items):
-            return [(util.pconvert(name.strip(os.sep)), path)
+            return [(util.pconvert(name).strip('/'), path)
                     for name, path in items]
 
         self.parentui = parentui