* Mail: fix losing inline images after being re-saved as draft or created as new

This commit is contained in:
Hadi Nategh 2021-04-13 13:23:09 +02:00
parent fe79fe390f
commit 4af0bec278
2 changed files with 3 additions and 3 deletions

View File

@ -6818,7 +6818,7 @@ class Mail
if ($URI_params['mailbox'] && $URI_params['uid'] && $URI_params['cid'])
{
$mail_bo->reopen(base64_decode($URI_params['mailbox']));
$attachment = $mail_bo->getAttachmentByCID($URI_params['uid'], base64_decode($URI_params['cid']),base64_decode($URI_params['partID']),true);
$attachment = $mail_bo->getAttachmentByCID(base64_decode($URI_params['uid']), base64_decode($URI_params['cid']),base64_decode($URI_params['partID']),true);
$mail_bo->closeConnection();
if ($attachment)
{

View File

@ -2678,7 +2678,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
*/
function displayImage()
{
$uid = $_GET['uid'];
$uid = base64_decode($_GET['uid']);
$cid = base64_decode($_GET['cid']);
$partID = urldecode($_GET['partID']);
if (!empty($_GET['mailbox'])) $mailbox = base64_decode($_GET['mailbox']);
@ -3602,7 +3602,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
{
$linkData = array (
'menuaction' => 'mail.mail_ui.displayImage',
'uid' => $_uid,
'uid' => base64_encode($_uid),
'mailbox' => base64_encode($_mailbox),
'cid' => base64_encode($_cid),
'partID' => $_partID,