Skip to content

Commit

Permalink
Fix bug where message parts with no Content-Disposition header and no…
Browse files Browse the repository at this point in the history
… name were not listed on attachments list (#7117)
  • Loading branch information
alecpl committed Jan 18, 2020
1 parent 62ed219 commit 3819e4e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ CHANGELOG Roundcube Webmail
- Fix unexpected error message when mail refresh involves folder auto-unsubscribe (#6923)
- Fix recipient duplicates in print-view when the recipient list has been expanded (#7169)
- Fix bug where files in skins/ directory were listed on skins list (#7180)
- Fix bug where message parts with no Content-Disposition header and no name were not listed on attachments list (#7117)

RELEASE 1.4.2
-------------
Expand Down
7 changes: 7 additions & 0 deletions program/lib/Roundcube/rcube_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,13 @@ private function parse_structure($structure, $recursive = false)

$this->add_part($mail_part, 'attachment');
}
// Last resort, non-inline and non-text part of multipart/mixed message (#7117)
else if ($mimetype == 'multipart/mixed'
&& $mail_part->disposition != 'inline'
&& $primary_type && $primary_type != 'text' && $primary_type != 'multipart'
) {
$this->add_part($mail_part, 'attachment');
}
}

// if this is a related part try to resolve references
Expand Down

0 comments on commit 3819e4e

Please sign in to comment.