author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
Fri, 13 Oct 2006 16:34:58 +0200 | |
changeset 3381 | 80721b86a448 |
parent 3380 | bb9852b3bf06 |
child 3382 | c7c6f1a45348 |
--- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -584,10 +584,7 @@ class hgweb(object): # 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."):