From ab7707c429d548656c5b008f545a97474c5c642e Mon Sep 17 00:00:00 2001 From: caryoscelus Date: Sat, 15 Jun 2024 13:55:09 +0000 Subject: [PATCH] Minor fix convert path to str --- src/Site/SiteStorage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Site/SiteStorage.py b/src/Site/SiteStorage.py index 16861b8b..56245314 100644 --- a/src/Site/SiteStorage.py +++ b/src/Site/SiteStorage.py @@ -413,8 +413,8 @@ class SiteStorage(object): if path == self.directory: inner_path = "" else: - if str(path).startswith(self.directory): - inner_path = path[len(self.directory) + 1:] + if str(path).startswith(str(self.directory)): + inner_path = path[len(str(self.directory)) + 1:] else: raise Exception("File not allowed: %s" % path) return inner_path