From 2fb8fcf6cbb41da91b163f8f97327f80fe360145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 7 Aug 2014 11:07:11 +0200 Subject: [PATCH] we can only close the session if encryption is not used --- apps/files_sharing/public.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index e64a1f7b12..c92d3fc400 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -100,7 +100,10 @@ if (isset($path)) { $file = basename($path); // Download the file if (isset($_GET['download'])) { - \OC::$server->getSession()->close(); + if (!\OCP\App::isEnabled('files_encryption')) { + // encryption app requires the session to store the keys in + \OC::$server->getSession()->close(); + } if (isset($_GET['files'])) { // download selected files $files = urldecode($_GET['files']); $files_list = json_decode($files);