Просмотр исходного кода

Maybe a slight fix for if the temp attachment name is 'none' then assume
that there is no attachment.

Tyler Akins 25 лет назад
Родитель
Сommit
5efa1979c0
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/compose.php

+ 2 - 1
src/compose.php

@@ -354,7 +354,8 @@
       $mailbox = "INBOX";
 
    if(isset($send)) {
-      if ($HTTP_POST_FILES['attachfile']['tmp_name'])
+      if ($HTTP_POST_FILES['attachfile']['tmp_name'] &&
+          $HTTP_POST_FILES['attachfile']['tmp_name'] != 'none')
           $AttachFailure = saveAttachedFiles();
       if (checkInput(false) && ! $AttachFailure) {
          $urlMailbox = urlencode ($mailbox);