Merge pull request #2160 from imachug/patch-1
Allow files with `..` as a name substring
This commit is contained in:
commit
c7822ed6e6
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ class ContentManager(object):
|
||||||
return back
|
return back
|
||||||
|
|
||||||
def isValidRelativePath(self, relative_path):
|
def isValidRelativePath(self, relative_path):
|
||||||
if ".." in relative_path:
|
if ".." in relative_path.replace("\\", "/").split("/"):
|
||||||
return False
|
return False
|
||||||
elif len(relative_path) > 255:
|
elif len(relative_path) > 255:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue