Ensure that svg content does not contain script

main
Bob Mottram 2022-05-26 17:40:00 +01:00
parent 6d76c51130
commit 1d0ccdecdb
1 changed files with 2 additions and 0 deletions

View File

@ -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