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

Merge pull request #896 from greezybacon/issue/inline-attachments


thread: Detect inline and separate attachments

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 3bf92695 3eef5c84
No related branches found
No related tags found
No related merge requests found
...@@ -1055,7 +1055,8 @@ Class ThreadEntry { ...@@ -1055,7 +1055,8 @@ Class ThreadEntry {
//Emailed or API attachments //Emailed or API attachments
if (isset($vars['attachments']) && $vars['attachments']) { if (isset($vars['attachments']) && $vars['attachments']) {
foreach ($vars['attachments'] as &$a) foreach ($vars['attachments'] as &$a)
if (isset($a['cid']) && strpos($body, 'cid:'.$a['cid']) !== false) if (isset($a['cid']) && $a['cid']
&& strpos($body, 'cid:'.$a['cid']) !== false)
$a['inline'] = true; $a['inline'] = true;
unset($a); unset($a);
......
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