forked from CGM_Public/pretix_original
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):
|
||||
image_src = image_src.strip()
|
||||
try:
|
||||
if image_src.startswith('data:image/'):
|
||||
image_type, image_content = image_src.split(',', 1)
|
||||
|
||||
Reference in New Issue
Block a user