mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
mail: strip image_src before converting to cid
This commit is contained in:
@@ -626,6 +626,7 @@ def encoder_linelength(msg):
|
|||||||
|
|
||||||
|
|
||||||
def convert_image_to_cid(image_src, cid_id, verify_ssl=True):
|
def convert_image_to_cid(image_src, cid_id, verify_ssl=True):
|
||||||
|
image_src = image_src.strip()
|
||||||
try:
|
try:
|
||||||
if image_src.startswith('data:image/'):
|
if image_src.startswith('data:image/'):
|
||||||
image_type, image_content = image_src.split(',', 1)
|
image_type, image_content = image_src.split(',', 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user