mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* Mail: fix losing inline images after being re-saved as draft or created as new
This commit is contained in:
parent
fe79fe390f
commit
4af0bec278
@ -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)
|
||||
{
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user