From 3bf87aae513867a7d3fe6edc952e8f440686034d Mon Sep 17 00:00:00 2001 From: stekkel Date: Thu, 1 Aug 2002 10:27:29 +0000 Subject: [PATCH] changed location for viewing text attachments git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3225 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/attachment_common.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/functions/attachment_common.php b/functions/attachment_common.php index edef441b..4f1967f8 100644 --- a/functions/attachment_common.php +++ b/functions/attachment_common.php @@ -93,14 +93,10 @@ function attachment_common_link_text(&$Args) $Args[1]['attachment_common']['href'] = Where it links to This sets the 'href' of this plugin for a new link. */ - $Args[1]['attachment_common']['href'] = '../src/download.php?startMessage=' . - $Args[2] . '&passed_id=' . $Args[3] . '&mailbox=' . $Args[4] . - '&passed_ent_id=' . $Args[5] . '&override_type0=text&override_type1=plain'; + + global $QUERY_STRING; + $Args[1]['attachment_common']['href'] = '../src/view_text.php?'. $QUERY_STRING; - /* If we got here from a search, we should preserve these variables */ - if ($Args[8] && $Args[9]) - $Args[1]['attachment_common']['href'] .= '&where=' . - urlencode($Args[8]) . '&what=' . urlencode($Args[9]); /* The link that we created needs a name. "view" will be displayed for all text attachments handled by this plugin. */ -- 2.25.1