fullscreen

main2
Bob Mottram 2019-10-23 13:39:42 +01:00
parent 2bb5d19904
commit a1bfc981dd
1 changed files with 3 additions and 2 deletions

View File

@ -973,7 +973,7 @@ class PubServer(BaseHTTPRequestHandler):
return return
# full screen images shown from the media timeline # 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] imageFilename=self.path.split('?img=')[1]
if '?' in imageFilename: if '?' in imageFilename:
imageFilename=imageFilename.split('?')[0] imageFilename=imageFilename.split('?')[0]
@ -983,8 +983,9 @@ class PubServer(BaseHTTPRequestHandler):
if '?' in imageDescription: if '?' in imageDescription:
imageDescription=imageDescription.split('?')[0] imageDescription=imageDescription.split('?')[0]
msg=htmlFullScreenImage(imageFilename,imageDescription) msg=htmlFullScreenImage(imageFilename,imageDescription)
self._login_headers('text/html',len(msg)) self._set_headers('text/html',len(msg),cookie)
self._write(msg) self._write(msg)
self.server.GETbusy=False
return return
# cached avatar images # cached avatar images