diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-28 17:47:59 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-05-28 17:47:59 +0000 |
| commit | 9bc2fff289242b686c921ce81a5b3a8fc4c3e764 (patch) | |
| tree | a19ca48872f596a20ea7e0160c52bc11ff10a222 | |
| parent | 9f5ec6e90d088224bc4c8dbabc92928fb4d6f0b8 (diff) | |
- simplified attachments handling on reply/forward/draft compose (possible regressions)
- also fix #1485847
git-svn-id: https://svn.roundcube.net/trunk@2556 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index f167053de..8d43de050 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -601,9 +601,8 @@ function rcmail_write_compose_attachments(&$message, $bodyIsHtml) $cid_map = array(); foreach ((array)$message->mime_parts as $pid => $part) { - if (($part->ctype_primary != 'message' || !$bodyIsHtml) && - ($part->disposition=='attachment' || $part->disposition=='inline' || $part->headers['content-id'] - || (empty($part->disposition) && $part->filename))) + if (($part->ctype_primary != 'message' || !$bodyIsHtml) && $part->filename && + ($part->disposition=='attachment' || ($part->disposition=='inline' && $bodyIsHtml) || (empty($part->disposition)))) { if ($attachment = rcmail_save_attachment($message, $pid)) { $_SESSION['compose']['attachments'][$attachment['id']] = $attachment; |
