Skip to content
Snippets Groups Projects
Commit 754a3946 authored by Jared Hancock's avatar Jared Hancock
Browse files

email: Fix inline images sent in old HTML markup

parent 30472267
No related branches found
No related tags found
No related merge requests found
...@@ -1036,7 +1036,7 @@ Class ThreadEntry { ...@@ -1036,7 +1036,7 @@ Class ThreadEntry {
// content-id will be discarded, only the unique hash-code // content-id will be discarded, only the unique hash-code
// will be available to retrieve the image later // will be available to retrieve the image later
if ($a['cid'] && $a['key']) { if ($a['cid'] && $a['key']) {
$body = str_replace('src="cid:'.$a['cid'].'"', $body = preg_replace('/src=("|\'|\b)cid:'.$a['cid'].'\1/i',
'src="cid:'.$a['key'].'"', $body); 'src="cid:'.$a['key'].'"', $body);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment