From 734f97511aaaa2025b0040efcfa9146834cb1670 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 20 Mar 2020 19:10:06 +0100 Subject: [PATCH] Fix bug where multiple images in a message were replaced by the first one on forward/reply/edit (#7293) --- CHANGELOG | 1 + program/steps/mail/compose.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index f859f231e..4f48f723c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -11,6 +11,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 ------------- diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index e10c35ea4..838b0e6d1 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -1042,7 +1042,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;