From 90555fe7d1b6583d1914883bd699683380f44b1e Mon Sep 17 00:00:00 2001 From: mattphillips Date: Fri, 27 Oct 2000 13:25:49 +0000 Subject: [PATCH] Fix for bug #117438, incorrect deletion of attachments. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@823 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compose.php b/src/compose.php index f31aff05..ff712a99 100644 --- a/src/compose.php +++ b/src/compose.php @@ -406,7 +406,7 @@ displayPageHeader($color, $mailbox); while (list($lkey, $localname) = each($delete)) { - array_splice ($attachments, $lkey, 1); + unset ($attachments[$localname]); unlink ($attachment_dir.$localname); unlink ($attachment_dir.$localname.".info"); } -- 2.25.1