diff -r 1b5b81d9039b -r b34028d52e7e mercurial/hgweb/hgwebdir_mod.py --- 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