From f17728d175ccf6056977ef6443e65701c04417e2 Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 19 Apr 2001 21:29:43 +0000 Subject: [PATCH] * When you browse for an attachment, then hit the Address Book form button, you used to lose your new attachment. Worry no longer. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1266 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compose.php b/src/compose.php index bc688f6e..eb6dbcf8 100644 --- a/src/compose.php +++ b/src/compose.php @@ -470,6 +470,13 @@ showInputForm(); } else if (isset($html_addr_search)) { + if (isset($HTTP_POST_FILES['attachfile']) && + $HTTP_POST_FILES['attachfile']['tmp_name'] && + $HTTP_POST_FILES['attachfile']['tmp_name'] != 'none') + { + if (saveAttachedFiles()) + plain_error_message(_("Could not move/copy file. File not attached"), $color); + } // I am using an include so as to elminiate an extra unnecessary click. If you // can think of a better way, please implement it. include ("./addrbook_search_html.php"); -- 2.25.1