forked from MarseyWorld/MarseyWorld
include "css" in error
parent
dead7b5b6e
commit
257a38548a
|
@ -623,10 +623,10 @@ def normalize_url(url):
|
||||||
|
|
||||||
def validate_css(css):
|
def validate_css(css):
|
||||||
if '@import' in css:
|
if '@import' in css:
|
||||||
return False, "@import statements are not allowed!"
|
return False, "CSS @import statements are not allowed!"
|
||||||
|
|
||||||
if '/*' in css:
|
if '/*' in css:
|
||||||
return False, "Comments are not allowed!"
|
return False, "CSS comments are not allowed!"
|
||||||
|
|
||||||
for i in css_url_regex.finditer(css):
|
for i in css_url_regex.finditer(css):
|
||||||
url = i.group(1)
|
url = i.group(1)
|
||||||
|
|
Loading…
Reference in New Issue