From 1d0ccdecdba49511751ab3c5c42b455be0802648 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 26 May 2022 17:40:00 +0100 Subject: [PATCH] Ensure that svg content does not contain script --- content.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content.py b/content.py index 5dfc5c03b..80878fba8 100644 --- a/content.py +++ b/content.py @@ -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