Show More
@@ -584,10 +584,7 b' class hgweb(object):' | |||||
584 | # find tag, changeset, file |
|
584 | # find tag, changeset, file | |
585 |
|
585 | |||
586 | def cleanpath(self, path): |
|
586 | def cleanpath(self, path): | |
587 |
|
|
587 | return util.canonpath(self.repo.root, '', path) | |
588 | if p[:2] == "..": |
|
|||
589 | raise Exception("suspicious path") |
|
|||
590 | return p |
|
|||
591 |
|
588 | |||
592 | def run(self): |
|
589 | def run(self): | |
593 | if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."): |
|
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