From 9f6cc07c87fc9f6bded9d3c4a5fa033f20bbc1f1 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sat, 11 Jul 2020 04:31:18 +0000 Subject: [PATCH] Add MIME type parameters ("type0", "type1") to the end of the plugin arguments for all attachment hooks git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14867 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/mime.php b/functions/mime.php index 56ee0d47..05e22b21 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -598,7 +598,8 @@ function buildAttachmentArray($message, $exclude_id, $mailbox, $id) { returning any changes, changes should simply be made to the original arguments themselves. */ $temp = array(&$links, &$startMessage, &$id, &$urlMailbox, &$ent, - &$defaultlink, &$display_filename, &$where, &$what); + &$defaultlink, &$display_filename, &$where, &$what, + $type0, $temp1); do_hook("attachment $type0/$type1", $temp); /* The API for this hook has changed as of 1.5.2 so that all plugin arguments are passed in an array instead of each their own plugin -- 2.25.1