Prevent crash due to trying to use '+' on fronzenset and list.
This commit is contained in:
parent
66de6d1243
commit
31f4b36436
2
utils.py
2
utils.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue