Rev4471, Allow files start with dot

This commit is contained in:
shortcutme 2020-03-21 19:51:44 +01:00
parent 1eec388252
commit 31d4304915
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 4 additions and 2 deletions

View file

@ -599,7 +599,7 @@ class ContentManager(object):
return False
elif len(relative_path) > 255:
return False
elif relative_path[0] in (".", "/"): # Starts with
elif relative_path[0] in ("/", "\\"): # Starts with
return False
elif relative_path[-1] in (".", " "): # Ends with
return False