diff --git a/theme.py b/theme.py index cef871e14..5b2862452 100644 --- a/theme.py +++ b/theme.py @@ -187,6 +187,8 @@ def setThemeFromDict(baseDir: str, name: str, templateFilename = \ 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 \ not os.path.isfile(templateFilename): # use default css