Browse Source

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

Tyler Akins 25 years ago
parent
commit
5efa1979c0
1 changed files with 2 additions and 1 deletions
  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);