From fd13b132af53a9379b6a219e9d6f2bb44cd7fd34 Mon Sep 17 00:00:00 2001 From: caryoscelus Date: Fri, 10 May 2024 19:23:05 +0000 Subject: [PATCH] Fix path-to-str --- src/Site/SiteStorage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Site/SiteStorage.py b/src/Site/SiteStorage.py index 7249ad34..16861b8b 100644 --- a/src/Site/SiteStorage.py +++ b/src/Site/SiteStorage.py @@ -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)