mirror of https://gitlab.com/bashrc2/epicyon
No html check on fonts
parent
ceb264a340
commit
f85c08ac54
|
@ -1319,9 +1319,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return
|
return
|
||||||
|
|
||||||
# get fonts
|
# get fonts
|
||||||
if htmlGET and '/fonts/' in self.path:
|
if '/fonts/' in self.path:
|
||||||
fontStr = self.path.split('/fonts/')[1]
|
fontStr = self.path.split('/fonts/')[1]
|
||||||
print('fontStr: ' + fontStr)
|
|
||||||
if fontStr.endswith('.otf') or \
|
if fontStr.endswith('.otf') or \
|
||||||
fontStr.endswith('.ttf') or \
|
fontStr.endswith('.ttf') or \
|
||||||
fontStr.endswith('.woff') or \
|
fontStr.endswith('.woff') or \
|
||||||
|
@ -1737,6 +1736,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'/emoji/' not in self.path and \
|
'/emoji/' not in self.path and \
|
||||||
'/tags/' not in self.path and \
|
'/tags/' not in self.path and \
|
||||||
'/avatars/' not in self.path and \
|
'/avatars/' not in self.path and \
|
||||||
|
'/fonts/' not in self.path and \
|
||||||
'/icons/' not in self.path:
|
'/icons/' not in self.path:
|
||||||
divertToLoginScreen = True
|
divertToLoginScreen = True
|
||||||
if self.path.startswith('/users/'):
|
if self.path.startswith('/users/'):
|
||||||
|
|
Loading…
Reference in New Issue