Explorar o código

Fix for bug #117438, incorrect deletion of attachments.

mattphillips %!s(int64=25) %!d(string=hai) anos
pai
achega
ef14edae35
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/compose.php

+ 1 - 1
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");
       }