From 78b4216e7121981386b854e88b17168c9ae7d8cd Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 3 Nov 2000 17:18:28 +0000 Subject: [PATCH] Maybe a slight fix for if the temp attachment name is 'none' then assume 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compose.php b/src/compose.php index 0403dbd5..694b6ff3 100644 --- a/src/compose.php +++ b/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); -- 2.25.1