From 257a38548aba8e1df23ac7d551c5b8e1d17074dc Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 11 Mar 2023 23:55:40 +0200 Subject: [PATCH] include "css" in error --- files/helpers/sanitize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index d3605f23f..2482a912f 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -623,10 +623,10 @@ def normalize_url(url): def validate_css(css): if '@import' in css: - return False, "@import statements are not allowed!" + return False, "CSS @import statements are not allowed!" if '/*' in css: - return False, "Comments are not allowed!" + return False, "CSS comments are not allowed!" for i in css_url_regex.finditer(css): url = i.group(1)