mercurial/hgweb/hgweb_mod.py
changeset 3382 80721b86a448
parent 3363 ce8f31e0b3b8
child 3391 defadc26e674
--- a/mercurial/hgweb/hgweb_mod.py	Fri Oct 13 10:50:35 2006 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Fri Oct 13 16:34:58 2006 +0200
@@ -584,10 +584,7 @@
     # find tag, changeset, file
 
     def cleanpath(self, path):
-        p = util.normpath(path)
-        if p[:2] == "..":
-            raise Exception("suspicious path")
-        return p
+        return util.canonpath(self.repo.root, '', path)
 
     def run(self):
         if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."):