Fix path-to-str
This commit is contained in:
parent
597bd57bd2
commit
fd13b132af
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ class SiteStorage(object):
|
|||
if path == self.directory:
|
||||
inner_path = ""
|
||||
else:
|
||||
if path.startswith(self.directory):
|
||||
if str(path).startswith(self.directory):
|
||||
inner_path = path[len(self.directory) + 1:]
|
||||
else:
|
||||
raise Exception("File not allowed: %s" % path)
|
||||
|
|
Loading…
Reference in a new issue