From 67c6c16ef498a6c730a98cb09e187edb3d8753aa Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 28 Jun 2020 11:29:20 +0100 Subject: [PATCH] Extra check --- daemon.py | 2 ++ posts.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 83eb13503..2850e2a08 100644 --- a/daemon.py +++ b/daemon.py @@ -1025,6 +1025,8 @@ class PubServer(BaseHTTPRequestHandler): # to be authorized to use an account you don't own if '/' + nickname + '/' in self.path: return True + if '/' + nickname + '?' in self.path: + return True if self.path.endswith('/'+nickname): return True print('AUTH: nickname ' + nickname + diff --git a/posts.py b/posts.py index 38ccd3e21..efa33e069 100644 --- a/posts.py +++ b/posts.py @@ -150,7 +150,6 @@ def parseUserFeed(session, feedUrl: str, asHeader: {}, projectVersion, httpPrefix, domain) if not feedJson: return - print('parseUserFeed: ' + str(feedJson)) if 'orderedItems' in feedJson: for item in feedJson['orderedItems']: