[Pkg-owncloud-commits] [owncloud] 177/258: Close the session for preview generation

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 7eb0d6866c6ed48364c238708530fa72faa7190d
Author: Lukas Reschke <lukas at owncloud.com>
Date:   Mon Sep 29 14:27:44 2014 +0200

    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 edbd41d..75dace7 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';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list