Skip to content

Commit

Permalink
Merge pull request #2160 from imachug/patch-1
Browse files Browse the repository at this point in the history
Allow files with `..` as a name substring
  • Loading branch information
HelloZeroNet committed Aug 19, 2019
2 parents 18dc359 + 1ed40b3 commit c7822ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Content/ContentManager.py
Expand Up @@ -595,7 +595,7 @@ def hashFile(self, dir_inner_path, file_relative_path, optional=False):
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
Expand Down

0 comments on commit c7822ed

Please sign in to comment.