From a3e3e3fe13a7e1f444bdad893b8bfa1ffc58371f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 25 Aug 2013 13:14:47 +0200 Subject: [PATCH] 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). --- plugins/kolab_files/lib/kolab_files_engine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kolab_files/lib/kolab_files_engine.php b/plugins/kolab_files/lib/kolab_files_engine.php index b8adfcbf..419dcb0b 100644 --- a/plugins/kolab_files/lib/kolab_files_engine.php +++ b/plugins/kolab_files/lib/kolab_files_engine.php @@ -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)) {