mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
* Mail: fix broken PDF attachments which were quoted-printable encoded
This commit is contained in:
parent
714e4b2169
commit
7772fd25ed
@ -6259,7 +6259,7 @@ class Mail
|
||||
// set binary, as it's already base64 transfer-encoded but lacks the necessary header
|
||||
if (($part->getType() === 'application/pdf' || $part->getPrimaryType() === 'image') &&
|
||||
// hack to read protected $structure->_transfer_encoding
|
||||
unserialize($part->serialize())[9] !== 'base64')
|
||||
!in_array(unserialize($part->serialize())[9], ['base64', 'quoted-printable']))
|
||||
{
|
||||
$part->setTransferEncoding('binary', ['send' => true]);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user