From f4c8a5ab6d65eb1d878e726bf20f89f133256fa7 Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 5 Jul 2002 13:58:02 +0000 Subject: [PATCH] redirect message/rfc822 attachments to read_body.php. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3048 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/attachment_common.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/attachment_common.php b/functions/attachment_common.php index 95ecd33b..edef441b 100644 --- a/functions/attachment_common.php +++ b/functions/attachment_common.php @@ -120,12 +120,14 @@ function attachment_common_link_text(&$Args) function attachment_common_link_message(&$Args) { - $Args[1]['attachment_common']['href'] = '../src/download.php?startMessage=' . + $Args[1]['attachment_common']['href'] = '../src/read_body.php?startMessage=' . $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] . '&passed_ent_id=' . $Args[5] . '&override_type0=message&override_type1=rfc822'; /* The link that we created needs a name. "view" will be displayed for all text attachments handled by this plugin. */ $Args[1]['attachment_common']['text'] = _("view"); + + $Args[6] = $Args[1]['attachment_common']['href']; } @@ -168,7 +170,7 @@ function attachment_common_link_image(&$Args) $Args[1]['attachment_common']['text'] = _("view"); $Args[6] = $Args[1]['attachment_common']['href']; - + } -- 2.25.1