No html check on fonts

main
Bob Mottram 2020-07-18 20:23:32 +01:00
parent ceb264a340
commit f85c08ac54
1 changed files with 2 additions and 2 deletions

View File

@ -1319,9 +1319,8 @@ class PubServer(BaseHTTPRequestHandler):
return
# get fonts
if htmlGET and '/fonts/' in self.path:
if '/fonts/' in self.path:
fontStr = self.path.split('/fonts/')[1]
print('fontStr: ' + fontStr)
if fontStr.endswith('.otf') or \
fontStr.endswith('.ttf') or \
fontStr.endswith('.woff') or \
@ -1737,6 +1736,7 @@ class PubServer(BaseHTTPRequestHandler):
'/emoji/' not in self.path and \
'/tags/' not in self.path and \
'/avatars/' not in self.path and \
'/fonts/' not in self.path and \
'/icons/' not in self.path:
divertToLoginScreen = True
if self.path.startswith('/users/'):