Fix bug where PDF attachments marked as inline could have not been attached on mail forward (#7382)

pull/7402/head
Aleksander Machniak 5 years ago
parent 6436c22d2d
commit e05c69afab

@ -33,6 +33,7 @@ CHANGELOG Roundcube Webmail
- Fix PHP warning: count(): Parameter must be an array or an object... in ID command handler (#7392)
- Fix error when user-configured skin does not exist anymore (#7271)
- Elastic: Fix aspect ratio of a contact photo in mail preview (#7339)
- Fix bug where PDF attachments marked as inline could have not been attached on mail forward (#7382)
RELEASE 1.4.4
-------------

@ -982,8 +982,9 @@ function rcmail_write_compose_attachments(&$message, $bodyIsHtml, &$message_body
$replace = null;
// skip inline images when not used in the body
if ($part->disposition == 'inline') {
// Skip inline images when not used in the body
// Note: Apple Mail sends PDF files marked as inline (#7382)
if ($part->disposition == 'inline' && $part->mimetype != 'application/pdf') {
if (!$bodyIsHtml) {
continue;
}

Loading…
Cancel
Save