From a1105562cddd053fab7d5715025a98fc8d6bcc94 Mon Sep 17 00:00:00 2001 From: Tamas Kocsis Date: Thu, 3 Dec 2020 20:04:09 +0100 Subject: [PATCH] Fix site listing show on big site visit --- plugins/UiFileManager/UiFileManagerPlugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/UiFileManager/UiFileManagerPlugin.py b/plugins/UiFileManager/UiFileManagerPlugin.py index 0af5bea9..658173ae 100644 --- a/plugins/UiFileManager/UiFileManagerPlugin.py +++ b/plugins/UiFileManager/UiFileManagerPlugin.py @@ -78,6 +78,9 @@ class UiFileManagerPlugin(object): if not site or not site.content_manager.contents.get("content.json"): return super().error404(path) + if path_parts["inner_path"] in site.content_manager.contents.get("content.json").get("files", {}): + return super().error404(path) + self.sendHeader(200) path_redirect = "/list" + re.sub("^/media/", "/", path) self.log.debug("Index.html not found: %s, redirecting to: %s" % (path, path_redirect))