Allow files with `..` as a name substring

This commit is contained in:
Ivanq 2019-08-19 07:09:32 +00:00 committed by GitHub
parent 18dc359cfc
commit 1ed40b3b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ class ContentManager(object):
return back
def isValidRelativePath(self, relative_path):
if ".." in relative_path:
if ".." in relative_path.replace("\\", "/").split("/"):
return False
elif len(relative_path) > 255:
return False