Show More
@@ -851,7 +851,7 b' class hgweb(object):' | |||||
851 |
|
851 | |||
852 | def run(self, req=hgrequest()): |
|
852 | def run(self, req=hgrequest()): | |
853 | def clean(path): |
|
853 | def clean(path): | |
854 |
p = |
|
854 | p = util.normpath(path) | |
855 | if p[:2] == "..": |
|
855 | if p[:2] == "..": | |
856 | raise "suspicious path" |
|
856 | raise "suspicious path" | |
857 | return p |
|
857 | return p |
General Comments 0
You need to be logged in to leave comments.
Login now