Fix session error after uploading attachment from cloud. There was

a bug where attachment body was unintentionally stored in session
when attachments handling plugin returned 'data' item (to be fixed
in *attachment plugins).
This commit is contained in:
Aleksander Machniak 2013-08-25 13:14:47 +02:00
parent 3f62bf917f
commit a3e3e3fe13

View file

@ -939,7 +939,7 @@ class kolab_files_engine
$id = $attachment['id'];
// store new attachment in session
unset($attachment['status'], $attachment['abort']);
unset($attachment['data'], $attachment['status'], $attachment['abort']);
$COMPOSE['attachments'][$id] = $attachment;
if (($icon = $COMPOSE['deleteicon']) && is_file($icon)) {