forked from MarseyWorld/MarseyWorld
parent
4dc10e0f99
commit
c03b7faa67
|
@ -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!"
|
||||||
|
|
Loading…
Reference in New Issue