Maybe a slight fix for if the temp attachment name is 'none' then assume
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 3 Nov 2000 17:18:28 +0000 (17:18 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 3 Nov 2000 17:18:28 +0000 (17:18 +0000)
that there is no attachment.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@840 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 0403dbd5c361c6e62eb723d27466e350376472bc..694b6ff30cc50c2711cab0fd8ac95f78072430dd 100644 (file)
       $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);