From 8d42672ee821706f7b0c7c60ca782f9fb337d204 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 2 Oct 2020 15:41:01 +0100 Subject: [PATCH] Needs a user --- daemon.py | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/daemon.py b/daemon.py index 748006a4f..4b7143768 100644 --- a/daemon.py +++ b/daemon.py @@ -7161,6 +7161,9 @@ class PubServer(BaseHTTPRequestHandler): """Shows an image at the top of the left/right column """ nickname = getNicknameFromActor(path) + if not nickname: + self._404() + return True bannerFilename = \ baseDir + '/accounts/' + \ nickname + '@' + domain + '/' + side + '_col_image.png' @@ -8142,21 +8145,21 @@ class PubServer(BaseHTTPRequestHandler): GETstartTime, GETtimings): return - if self.path.endswith('/left_col_image.png'): - if self._columImage('left', callingDomain, self.path, - self.server.baseDir, - self.server.domain, - self.server.port, - GETstartTime, GETtimings): - return + if self.path.endswith('/left_col_image.png'): + if self._columImage('left', callingDomain, self.path, + self.server.baseDir, + self.server.domain, + self.server.port, + GETstartTime, GETtimings): + return - if self.path.endswith('/right_col_image.png'): - if self._columImage('right', callingDomain, self.path, - self.server.baseDir, - self.server.domain, - self.server.port, - GETstartTime, GETtimings): - return + if self.path.endswith('/right_col_image.png'): + if self._columImage('right', callingDomain, self.path, + self.server.baseDir, + self.server.domain, + self.server.port, + GETstartTime, GETtimings): + return self._benchmarkGETtimings(GETstartTime, GETtimings, 'account qrcode done',