Skip to content
Snippets Groups Projects
Commit 97cbec8b authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #11853 from owncloud/close-session-for-trashbin

Close session for files_trashbin
parents 810dd956 2cd35e94
Branches
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck(); OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$folder = isset($_POST['dir']) ? $_POST['dir'] : '/'; $folder = isset($_POST['dir']) ? $_POST['dir'] : '/';
// "empty trash" command // "empty trash" command
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck(); OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$trashStatus = OCA\Files_Trashbin\Trashbin::isEmpty(OCP\User::getUser()); $trashStatus = OCA\Files_Trashbin\Trashbin::isEmpty(OCP\User::getUser());
......
<?php <?php
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
\OC::$server->getSession()->close();
// Load the files // Load the files
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : ''; $dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
\OC_Util::checkLoggedIn(); \OC_Util::checkLoggedIn();
\OC::$server->getSession()->close();
if(!\OC_App::isEnabled('files_trashbin')){ if(!\OC_App::isEnabled('files_trashbin')){
exit; exit;
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck(); OCP\JSON::callCheck();
\OC::$server->getSession()->close();
$files = $_POST['files']; $files = $_POST['files'];
$dir = '/'; $dir = '/';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment