Avoid favicon confusion

merge-requests/30/head
Bob Mottram 2021-12-16 23:00:15 +00:00
parent 06165e76a9
commit 791bbcf423
1 changed files with 12 additions and 11 deletions

View File

@ -13425,18 +13425,19 @@ class PubServer(BaseHTTPRequestHandler):
# default newswire favicon, for links to sites which # default newswire favicon, for links to sites which
# have no favicon # have no favicon
if 'newswire_favicon.ico' in self.path: if not self.path.startswith('/favicons/'):
self._getFavicon(callingDomain, self.server.baseDir, if 'newswire_favicon.ico' in self.path:
self.server.debug, self._getFavicon(callingDomain, self.server.baseDir,
'newswire_favicon.ico') self.server.debug,
return 'newswire_favicon.ico')
return
# favicon image # favicon image
if 'favicon.ico' in self.path: if 'favicon.ico' in self.path:
self._getFavicon(callingDomain, self.server.baseDir, self._getFavicon(callingDomain, self.server.baseDir,
self.server.debug, self.server.debug,
'favicon.ico') 'favicon.ico')
return return
# check authorization # check authorization
authorized = self._isAuthorized() authorized = self._isAuthorized()