mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
Merge pull request #2716 from imachug/uifile-404-fix
Fix 404 error handler in UiFilePlugin
This commit is contained in:
commit
454c0b2e7e
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue