forked from rDrama/rDrama
disallow comments in css
parent
44914cd166
commit
cd2d36e8ef
|
@ -621,6 +621,9 @@ def validate_css(css):
|
||||||
if '@import' in css:
|
if '@import' in css:
|
||||||
return False, "@import statements are not allowed!"
|
return False, "@import statements are not allowed!"
|
||||||
|
|
||||||
|
if '/**/' in css:
|
||||||
|
return False, "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)
|
||||||
if not is_safe_url(url):
|
if not is_safe_url(url):
|
||||||
|
|
Loading…
Reference in New Issue