We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6a635 commit 937ec9bCopy full SHA for 937ec9b
ephios/core/services/mail/cid.py
@@ -86,7 +86,7 @@ def convert_image_to_cid(image_src, cid_id, verify_ssl=True):
86
try:
87
if image_src.startswith("data:image/"):
88
image_type, image_content = image_src.split(",", 1)
89
- image_type = re.find_all(r"data:image/(\w+);base64", image_type)[0]
+ image_type = re.findall(r"data:image/(\w+);base64", image_type)[0]
90
mime_image = MIMEImage(image_content, _subtype=image_type, _encoder=encoder_linelength)
91
mime_image.add_header("Content-Transfer-Encoding", "base64")
92
elif image_src.startswith("data:"):
0 commit comments