Revert "fix ipgrapper exploit"

This reverts commit 06ac5df959.
master
Aevann 2023-09-07 15:22:17 +03:00
parent 4dc10e0f99
commit c03b7faa67
1 changed files with 2 additions and 2 deletions

View File

@ -798,8 +798,8 @@ def normalize_url(url):
return url return url
def validate_css(css): def validate_css(css):
if '@' in css: if '@import' in css:
return False, "CSS @ statements are not allowed!" return False, "CSS @import statements are not allowed!"
if '/*' in css: if '/*' in css:
return False, "CSS comments are not allowed!" return False, "CSS comments are not allowed!"