From c03b7faa67e8ea0b5fd5990d5d65289fd7f0b0c9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 7 Sep 2023 15:22:17 +0300 Subject: [PATCH] Revert "fix ipgrapper exploit" This reverts commit 06ac5df959e2e4ac2483f236dfc5d6150b66fdef. --- 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 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!"