Close session for files_trashbin

When restoring huge folders the interface will be unresponsive otherwise
remotes/origin/fix-10825
Lukas Reschke 11 years ago
parent 6c4b7db09b
commit 2cd35e94b4
  1. 2
      apps/files_trashbin/ajax/delete.php
  2. 1
      apps/files_trashbin/ajax/isEmpty.php
  3. 1
      apps/files_trashbin/ajax/list.php
  4. 1
      apps/files_trashbin/ajax/preview.php
  5. 1
      apps/files_trashbin/ajax/undelete.php

@ -2,6 +2,8 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$folder = isset($_POST['dir']) ? $_POST['dir'] : '/';
// "empty trash" command

@ -6,6 +6,7 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$trashStatus = OCA\Files_Trashbin\Trashbin::isEmpty(OCP\User::getUser());

@ -1,6 +1,7 @@
<?php
OCP\JSON::checkLoggedIn();
\OC::$server->getSession()->close();
// Load the files
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';

@ -6,6 +6,7 @@
* See the COPYING-README file.
*/
\OC_Util::checkLoggedIn();
\OC::$server->getSession()->close();
if(!\OC_App::isEnabled('files_trashbin')){
exit;

@ -2,6 +2,7 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$files = $_POST['files'];
$dir = '/';

Loading…
Cancel
Save