Fix bug where inline images could have been ignored if Content-Id header contained redundant spaces (#6980)

pull/7051/head
Aleksander Machniak 5 years ago
parent df414aa30c
commit 3a097e6836

@ -11,6 +11,7 @@ CHANGELOG Roundcube Webmail
- Archive: Fix missing Archive icon in folder selector popup in Elastic
- Fix bug where cache keys were not case-sensitive on MySQL/MSSQL (#6942)
- Fix so an error is loogged when encryption fails (#6948)
- Fix bug where inline images could have been ignored if Content-Id header contained redundant spaces (#6980)
RELEASE 1.4-rc2
---------------

@ -2180,8 +2180,7 @@ class rcube_imap extends rcube_storage
// get part ID
if (!empty($part[3])) {
$struct->content_id = $part[3];
$struct->headers['content-id'] = $part[3];
$struct->content_id = $struct->headers['content-id'] = trim($part[3]);
if (empty($struct->disposition)) {
$struct->disposition = 'inline';

Loading…
Cancel
Save