From: philippe_mingo Date: Fri, 18 Jan 2002 12:07:21 +0000 (+0000) Subject: Bugfix. Show attached images. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=cd7b8833879bcf92e21ba7f2da527493358fdda5 Bugfix. Show attached images. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2160 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/attachment_common.php b/functions/attachment_common.php index 1f69325d..d89dfe14 100644 --- a/functions/attachment_common.php +++ b/functions/attachment_common.php @@ -133,9 +133,10 @@ function attachment_common_link_html(&$Args) $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] . '&passed_ent_id=' . $Args[5] . '&override_type0=text&override_type1=html'; - if ($Args[8] && $Args[9]) + if ($Args[8] && $Args[9]) { $Args[1]['attachment_common']['href'] .= '&where=' . urlencode($Args[8]) . '&what=' . urlencode($Args[9]); + } $Args[1]['attachment_common']['text'] = _("view"); @@ -157,13 +158,15 @@ function attachment_common_link_image(&$Args) $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] . '&passed_ent_id=' . $Args[5]; - if ($Args[8] && $Args[9]) + if ($Args[8] && $Args[9]) { $Args[1]['attachment_common']['href'] .= '&where=' . urlencode($Args[8]) . '&what=' . urlencode($Args[9]); + } $Args[1]['attachment_common']['text'] = _("view"); $Args[6] = $Args[1]['attachment_common']['href']; + } diff --git a/src/read_body.php b/src/read_body.php index 11999687..866422d5 100644 --- a/src/read_body.php +++ b/src/read_body.php @@ -659,9 +659,9 @@ if (($attachment_common_show_images) && foreach ($attachment_common_show_images_list as $img) { $imgurl = '../src/download.php' . - "?startMessage=$startMessage". - '&passed_id=' . urlencode($img['passed_id']) . - '&mailbox=' . urlencode($img['mailbox']) . + '?' . + 'passed_id=' . urlencode($img['passed_id']) . + '&mailbox=' . urlencode($mailbox) . '&passed_ent_id=' . urlencode($img['ent_id']) . '&absolute_dl=true';