Avoid favicon confusion

main
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
# have no favicon
if 'newswire_favicon.ico' in self.path:
self._getFavicon(callingDomain, self.server.baseDir,
self.server.debug,
'newswire_favicon.ico')
return
if not self.path.startswith('/favicons/'):
if 'newswire_favicon.ico' in self.path:
self._getFavicon(callingDomain, self.server.baseDir,
self.server.debug,
'newswire_favicon.ico')
return
# favicon image
if 'favicon.ico' in self.path:
self._getFavicon(callingDomain, self.server.baseDir,
self.server.debug,
'favicon.ico')
return
# favicon image
if 'favicon.ico' in self.path:
self._getFavicon(callingDomain, self.server.baseDir,
self.server.debug,
'favicon.ico')
return
# check authorization
authorized = self._isAuthorized()