forked from MarseyWorld/MarseyWorld
fix ipgrapper exploit
parent
a4bc71d4e3
commit
06ac5df959
|
@ -795,8 +795,8 @@ def normalize_url(url):
|
|||
return url
|
||||
|
||||
def validate_css(css):
|
||||
if '@import' in css:
|
||||
return False, "CSS @import statements are not allowed!"
|
||||
if '@' in css:
|
||||
return False, "CSS @ statements are not allowed!"
|
||||
|
||||
if '/*' in css:
|
||||
return False, "CSS comments are not allowed!"
|
||||
|
|
Loading…
Reference in New Issue