Selaa lähdekoodia

Fix for bug #117438, incorrect deletion of attachments.

mattphillips 25 vuotta sitten
vanhempi
commit
ef14edae35
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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");
       }