From 4591de7018414267311b421ef42ef1b4a2f6aa89 Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 10 Mar 2011 20:21:21 +0000 Subject: Prepare for multiple concurrent compose windows --- program/steps/mail/attachments.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'program/steps/mail/attachments.inc') diff --git a/program/steps/mail/attachments.inc b/program/steps/mail/attachments.inc index 13fb5e0b1..6b32ad6a7 100644 --- a/program/steps/mail/attachments.inc +++ b/program/steps/mail/attachments.inc @@ -20,6 +20,9 @@ */ +$COMPOSE_ID = get_input_value('_id', RCUBE_INPUT_GPC); +$_SESSION['compose'] = $_SESSION['compose_data'][$COMPOSE_ID]; + if (!$_SESSION['compose']) { die("Invalid session var!"); } @@ -84,7 +87,8 @@ if (is_array($_FILES['_attachments']['tmp_name'])) { 'path' => $filepath, 'size' => $_FILES['_attachments']['size'][$i], 'name' => $_FILES['_attachments']['name'][$i], - 'mimetype' => rc_mime_content_type($filepath, $_FILES['_attachments']['name'][$i], $_FILES['_attachments']['type'][$i]) + 'mimetype' => rc_mime_content_type($filepath, $_FILES['_attachments']['name'][$i], $_FILES['_attachments']['type'][$i]), + 'group' => $COMPOSE_ID, ); $attachment = $RCMAIL->plugins->exec_hook('attachment_upload', $attachment); -- cgit v1.2.3