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

pull/6691/merge
Aleksander Machniak 5 years ago
parent 30b5d4ef64
commit c1c534d67c

@ -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