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

oops: Fixup cid detection in thread body (again)

parent 26f4b427
No related branches found
No related tags found
No related merge requests found
......@@ -1048,7 +1048,8 @@ 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:)?'.preg_quote($a['cid']).'\1/i',
$body = preg_replace('/src=("|\'|\b)(?:cid:)?'
. preg_quote($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.
Finish editing this message first!
Please register or to comment