From ba2472575f6aa44bb04af8421f2bb868f980a1c7 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 29 Sep 2014 14:27:44 +0200 Subject: [PATCH] Close the session for preview generation Without closing the session every preview image generation is locking the session which makes the webinterface unresponsive. --- core/ajax/preview.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/ajax/preview.php b/core/ajax/preview.php index d2811f39dd..56ef5ea847 100644 --- a/core/ajax/preview.php +++ b/core/ajax/preview.php @@ -6,6 +6,7 @@ * See the COPYING-README file. */ \OC_Util::checkLoggedIn(); +\OC::$server->getSession()->close(); $file = array_key_exists('file', $_GET) ? (string)$_GET['file'] : ''; $maxX = array_key_exists('x', $_GET) ? (int)$_GET['x'] : '36';