mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
baece9e606
commit
577bf923c1
|
@ -274,7 +274,9 @@ def dangerous_css(filename: str, allow_local_network_access: bool) -> bool:
|
|||
url_list = content.split('url(')
|
||||
ctr = 0
|
||||
for url_str in url_list:
|
||||
if ctr > 0:
|
||||
if ctr == 0:
|
||||
ctr = 1
|
||||
continue
|
||||
if ')' in url_str:
|
||||
url_str = url_str.split(')')[0]
|
||||
if string_contains(url_str, ('http', 'ipfs', 'ipns')):
|
||||
|
|
Loading…
Reference in New Issue