Skip to content

Commit

Permalink
Fix bug where multiple images in a message were replaced by the first…
Browse files Browse the repository at this point in the history
… one on forward/reply/edit (#7293)
  • Loading branch information
alecpl committed Mar 20, 2020
1 parent 2965e60 commit 3d4a02a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ CHANGELOG Roundcube Webmail
- Fix regression in testing database schema on MSSQL (#7227)
- Fix cursor position after inserting a group to a recipient input using autocompletion (#7267)
- Fix string literals handling in IMAP STATUS (and various other) responses (#7290)
- Fix bug where multiple images in a message were replaced by the first one on forward/reply/edit (#7293)

RELEASE 1.4.3
-------------
Expand Down
2 changes: 1 addition & 1 deletion program/steps/mail/compose.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ function rcmail_cid_map($message)
}
}

$url = sprintf('RCMAP%s', md5($message->folder . '/' . $message->uid));
$url = sprintf('RCMAP%s', md5($message->folder . '/' . $message->uid . '/' . $pid));
$idx = $part->content_id ? ('cid:' . $part->content_id) : $part->content_location;

$map[$idx] = $url;
Expand Down

0 comments on commit 3d4a02a

Please sign in to comment.