From b0314f04803eb0faa5035b2839f3af95716cc17a Mon Sep 17 00:00:00 2001 From: jangliss Date: Mon, 10 Mar 2003 05:15:46 +0000 Subject: [PATCH 1/1] Fixed attachments issue... Seemed that the session wasn't getting the new value of the message array when composing. This'd make the attachments apparently vanish. Also added back in the $restoremessages array, was that which helped me solve the attachments issue. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4627 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compose.php b/src/compose.php index d9308aac..c594a679 100644 --- a/src/compose.php +++ b/src/compose.php @@ -79,6 +79,7 @@ sqgetGlobalVar('addr_search_done', $html_addr_search_done, SQ_POST); sqgetGlobalVar('send_to_search', $send_to_search, SQ_POST); sqgetGlobalVar('do_delete', $do_delete, SQ_POST); sqgetGlobalVar('delete', $delete, SQ_POST); +sqgetGlobalVar('restoremessages', $restoremessages, SQ_POST); if ( sqgetGlobalVar('return', $temp, SQ_POST) ) { $html_addr_search_done = 'Use Addresses'; } @@ -1218,6 +1219,7 @@ function saveAttachedFiles($session) { $name = $_FILES['attachfile']['name']; $message->initAttachment($type, $name, $full_localfilename); $compose_messages[$session] = $message; + sqsession_register($compose_messages , 'compose_messages'); } function ClearAttachments($composeMessage) { -- 2.25.1