Prevent crash due to trying to use '+' on fronzenset and list.

This commit is contained in:
Albert Cervera i Areny 2023-08-22 12:28:45 +02:00
parent 66de6d1243
commit 31f4b36436
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ def render_email(eml):
'div': ['dir'],
'img': ['src', 'alt', 'width', 'height'],
})
protocols = bleach.ALLOWED_PROTOCOLS + ['cid']
protocols = list(bleach.ALLOWED_PROTOCOLS) + ['cid']
html = bleach.clean(html, tags=tags, attributes=attributes,
protocols=protocols, strip=True, strip_comments=True)
html = bleach.linkify(html)