mirror of https://gitlab.com/bashrc2/epicyon
Ensure that svg content does not contain script
parent
6d76c51130
commit
1d0ccdecdb
|
@ -1717,4 +1717,6 @@ def remove_script(content: str, log_filename: str,
|
|||
except OSError:
|
||||
print('EX: cannot append to svg script log')
|
||||
content = content.replace(text, '')
|
||||
if 'script' in content:
|
||||
return ''
|
||||
return content
|
||||
|
|
Loading…
Reference in New Issue