From c740b07c9fefb66b7666791ede87c623cbccc992 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 27 May 2020 16:08:09 +0100 Subject: [PATCH] Don't allow custom font upload Extraction of the font from POST seems buggy and causes other problems --- daemon.py | 3 +-- webinterface.py | 12 ++++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/daemon.py b/daemon.py index 355555a1..a549e2ed 100644 --- a/daemon.py +++ b/daemon.py @@ -5419,8 +5419,7 @@ class PubServer(BaseHTTPRequestHandler): # extract each image type actorChanged = True profileMediaTypes = ('avatar', 'image', - 'banner', 'instanceLogo', - 'customFont') + 'banner', 'instanceLogo') profileMediaTypesUploaded = {} for mType in profileMediaTypes: if self.server.debug: diff --git a/webinterface.py b/webinterface.py index 768a6ca0..4ec97615 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1167,12 +1167,12 @@ def htmlEditProfile(translate: {}, baseDir: str, path: str, themesDropdown += ' ' themesDropdown += '
' - themesDropdown += \ - ' ' - themesDropdown += \ - ' ' + # themesDropdown += \ + # ' ' + # themesDropdown += \ + # ' ' if os.path.isfile(baseDir + '/fonts/custom.woff') or \ os.path.isfile(baseDir + '/fonts/custom.woff2') or \ os.path.isfile(baseDir + '/fonts/custom.otf') or \