diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index f39ba95ae..fd55efb36 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -798,8 +798,8 @@ def normalize_url(url): return url def validate_css(css): - if '@' in css: - return False, "CSS @ statements are not allowed!" + if '@import' in css: + return False, "CSS @import statements are not allowed!" if '/*' in css: return False, "CSS comments are not allowed!"