Not an image

main
Bob Mottram 2020-06-19 20:40:40 +01:00
parent 6b3f3d1a64
commit ca6f735ff3
1 changed files with 2 additions and 1 deletions

View File

@ -1617,7 +1617,8 @@ class PubServer(BaseHTTPRequestHandler):
self._benchmarkGETtimings(GETstartTime, GETtimings, 13)
# if not authorized then show the login screen
if htmlGET and self.path != '/login' and self.path != '/':
if htmlGET and self.path != '/login' and \
not self.path.endswith('.png') and self.path != '/':
if '/media/' not in self.path and \
'/sharefiles/' not in self.path and \
'/statuses/' not in self.path and \