summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-09-16 17:53:35 +0000
committerthomascube <thomas@roundcube.net>2011-09-16 17:53:35 +0000
commit06dc9838e0327c9472cbd3f353b40317eba0ecef (patch)
tree5453f347243a0fdc72fe0e201af3faa7890d0be9 /program/steps/mail/func.inc
parent612eeca739c00e6e0341c2f039b23cefff8d4945 (diff)
Fix session race conditions when composing new messages
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 98040e99f..36b18ce48 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -1430,12 +1430,12 @@ function rcmail_message_part_frame($attrib)
*/
function rcmail_compose_cleanup($id)
{
- if (!isset($_SESSION['compose_data'][$id]))
+ if (!isset($_SESSION['compose_data_'.$id]))
return;
$rcmail = rcmail::get_instance();
$rcmail->plugins->exec_hook('attachments_cleanup', array('group' => $id));
- unset($_SESSION['compose_data'][$id]);
+ $rcmail->session->remove('compose_data_'.$id);
}