From e8f049a76560f4c190a8e8d999b5ab77636d76f1 Mon Sep 17 00:00:00 2001 From: shortcutme <tamas@zeronet.io> Date: Thu, 26 Oct 2017 10:43:10 +0200 Subject: [PATCH] Strip / from content.json location of file_info --- src/Content/ContentManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index 1d4956e0..732026c6 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -307,7 +307,8 @@ class ContentManager(object): inner_path_parts = [dirs.pop()] # Filename relative to content.json while True: content_inner_path = "%s/content.json" % "/".join(dirs) - content = self.contents.get(content_inner_path.strip("/")) + content_inner_path = content_inner_path.strip("/") + content = self.contents.get(content_inner_path) # Check in files if content and "files" in content: