From a1bfc981dd425ed18041929692cc1c5612c5e07d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2019 13:39:42 +0100 Subject: [PATCH] fullscreen --- daemon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 1e1c4fc0..d29286d8 100644 --- a/daemon.py +++ b/daemon.py @@ -973,7 +973,7 @@ class PubServer(BaseHTTPRequestHandler): return # full screen images shown from the media timeline - if self.path.startswith('/fullscreen'): + if htmlGET and authorized and self.path.startswith('/fullscreen'): imageFilename=self.path.split('?img=')[1] if '?' in imageFilename: imageFilename=imageFilename.split('?')[0] @@ -983,8 +983,9 @@ class PubServer(BaseHTTPRequestHandler): if '?' in imageDescription: imageDescription=imageDescription.split('?')[0] msg=htmlFullScreenImage(imageFilename,imageDescription) - self._login_headers('text/html',len(msg)) + self._set_headers('text/html',len(msg),cookie) self._write(msg) + self.server.GETbusy=False return # cached avatar images