# HG changeset patch # User Patrick Mezard # Date 2007-12-02 18:39:27 # Node ID d2831a5d59478028ba6e14475470c4f5e3205cf7 # Parent 8a8c341bd292a6de17a1cc4cd138da226496bfde hgwebdir: normalize virtual paths before stripping the separator It is not even clear that virtual paths should be normalized as normal paths at all, we could expect slash to be the natural separator. diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -16,7 +16,7 @@ from hgweb_mod import hgweb 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