mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 14:10:28 +01:00
ticket improved attachment handling when no content-disposition is giving
This commit is contained in:
parent
51a6c07085
commit
ba17741470
@ -67,11 +67,18 @@ class MailAttachmentData implements MailAttachmentInterface
|
|||||||
} else if ($split[0] === 'inline') {
|
} else if ($split[0] === 'inline') {
|
||||||
return ('inline');
|
return ('inline');
|
||||||
}
|
}
|
||||||
} else { // Check for application/octet-stream
|
} else {
|
||||||
|
// No disposition given (that is a bad thing)
|
||||||
|
// Check for application/octet-stream
|
||||||
$content_type = $part->getContentType();
|
$content_type = $part->getContentType();
|
||||||
if ($content_type == 'application/octet-stream') {
|
if ($content_type == 'application/octet-stream') {
|
||||||
return('application/octet-stream');
|
return('application/octet-stream');
|
||||||
}
|
}
|
||||||
|
// Check for Content-id
|
||||||
|
$contentIdHeader = $part->getHeader('content-id');
|
||||||
|
if ($contentIdHeader !== null) {
|
||||||
|
return ('inline');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user