Browse Source

Merge pull request #2716 from imachug/uifile-404-fix

Fix 404 error handler in UiFilePlugin
py3
ZeroNet 1 year ago
committed by GitHub
parent
commit
454c0b2e7e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      plugins/UiFileManager/UiFileManagerPlugin.py

3
plugins/UiFileManager/UiFileManagerPlugin.py

@ -73,6 +73,9 @@ class UiFileManagerPlugin(object):
return super().error404(path)
path_parts = self.parsePath(path)
if not path_parts:
return super().error404(path)
site = self.server.site_manager.get(path_parts["request_address"])
if not site or not site.content_manager.contents.get("content.json"):

Loading…
Cancel
Save