From 72331102cd5cf0f35579aa7636df543908d0eab0 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Sat, 11 Jul 2020 07:52:44 +0000 Subject: [PATCH] Fix index value that was left over from 1.4.x git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14871 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/attachment_common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/attachment_common.php b/functions/attachment_common.php index cdf737e9..58d26512 100644 --- a/functions/attachment_common.php +++ b/functions/attachment_common.php @@ -265,7 +265,7 @@ function attachment_common_octet_stream(&$Args) { //FIXME: or at least we can move this hook up to the top of this file where $FileExtensionToMimeType is defined. What else is this hook here for? What plugins use it? do_hook('attachment_common-load_mime_types', $null); - preg_match('/\.([^.]+)$/', $Args[7], $Regs); + preg_match('/\.([^.]+)$/', $Args[6], $Regs); $Ext = ''; if (is_array($Regs) && isset($Regs[1])) { -- 2.25.1