From f85c08ac541b55a626d17fcc2a4ef2fb124eaafe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 18 Jul 2020 20:23:32 +0100 Subject: [PATCH] No html check on fonts --- daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index cd5a45097..cf12ea415 100644 --- a/daemon.py +++ b/daemon.py @@ -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/'):