Show More
@@ -584,10 +584,7 b' class hgweb(object):' | |||
|
584 | 584 | # find tag, changeset, file |
|
585 | 585 | |
|
586 | 586 | def cleanpath(self, path): |
|
587 |
|
|
|
588 | if p[:2] == "..": | |
|
589 | raise Exception("suspicious path") | |
|
590 | return p | |
|
587 | return util.canonpath(self.repo.root, '', path) | |
|
591 | 588 | |
|
592 | 589 | def run(self): |
|
593 | 590 | if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
General Comments 0
You need to be logged in to leave comments.
Login now