From 7a182248fd027f9d6c451107ab6c3f73d8b080c9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 19 Dec 2021 12:37:24 +0000 Subject: [PATCH] Ensure that the image data for svg is a string --- newswire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newswire.py b/newswire.py index 5277f3382..482ccb2cb 100644 --- a/newswire.py +++ b/newswire.py @@ -179,7 +179,7 @@ def _downloadNewswireFeedFavicon(session, baseDir: str, # check svg for dubious scripts if favUrl.endswith('.svg'): - if dangerousSVG(imageData, False): + if dangerousSVG(str(imageData), False): return False # save to the cache