main
Bob Mottram 2020-11-15 11:07:12 +00:00
parent 9726a63c33
commit 9c1a0b9bdb
1 changed files with 2 additions and 0 deletions

View File

@ -187,6 +187,8 @@ def setThemeFromDict(baseDir: str, name: str,
templateFilename = \ templateFilename = \
baseDir + '/theme/' + name + '/epicyon-profile.css' baseDir + '/theme/' + name + '/epicyon-profile.css'
# Ensure that any custom CSS is mostly harmless.
# If not then just use the defaults
if dangerousCSS(templateFilename) or \ if dangerousCSS(templateFilename) or \
not os.path.isfile(templateFilename): not os.path.isfile(templateFilename):
# use default css # use default css