Ensure that the image data for svg is a string

main
Bob Mottram 2021-12-19 12:37:24 +00:00
parent 1aa2993bcc
commit 7a182248fd
1 changed files with 1 additions and 1 deletions

View File

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