Skip to content
Snippets Groups Projects
Commit 6b753cac authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #779 from greezybacon/issue/inline-img-missing-cid


Inline images in email without a 'cid:' indicator

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 345788a9 3c3ffbfa
Branches
Tags
No related merge requests found
......@@ -1048,7 +1048,7 @@ Class ThreadEntry {
// content-id will be discarded, only the unique hash-code
// will be available to retrieve the image later
if ($a['cid'] && $a['key']) {
$body = preg_replace('/src=("|\'|\b)cid:'.$a['cid'].'\1/i',
$body = preg_replace('/src=("|\'|\b)(?:cid:)?'.$a['cid'].'\1/i',
'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