aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-11-05 12:44:10 +0100
committerVincent Petry <pvince81@owncloud.com>2014-11-05 12:44:10 +0100
commit97cbec8b8dc0ee74ba06618da1e20f8585869210 (patch)
tree983584d759b340ac7aa2dad60d7f90ac18768381 /apps/files_trashbin
parent810dd956b4a0d08cce02fe29a93383454880ea89 (diff)
parent2cd35e94b4cd36f8f3e1691bc7da56583daca672 (diff)
downloadnextcloud-server-97cbec8b8dc0ee74ba06618da1e20f8585869210.tar.gz
nextcloud-server-97cbec8b8dc0ee74ba06618da1e20f8585869210.zip
Merge pull request #11853 from owncloud/close-session-for-trashbin
Close session for files_trashbin
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/ajax/delete.php2
-rw-r--r--apps/files_trashbin/ajax/isEmpty.php1
-rw-r--r--apps/files_trashbin/ajax/list.php1
-rw-r--r--apps/files_trashbin/ajax/preview.php1
-rw-r--r--apps/files_trashbin/ajax/undelete.php1
5 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_trashbin/ajax/delete.php b/apps/files_trashbin/ajax/delete.php
index a2302802649..72553fa0ee0 100644
--- a/apps/files_trashbin/ajax/delete.php
+++ b/apps/files_trashbin/ajax/delete.php
@@ -2,6 +2,8 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
+\OC::$server->getSession()->close();
+
$folder = isset($_POST['dir']) ? $_POST['dir'] : '/';
// "empty trash" command
diff --git a/apps/files_trashbin/ajax/isEmpty.php b/apps/files_trashbin/ajax/isEmpty.php
index 2e54c7e77b9..897ee262895 100644
--- a/apps/files_trashbin/ajax/isEmpty.php
+++ b/apps/files_trashbin/ajax/isEmpty.php
@@ -6,6 +6,7 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
+\OC::$server->getSession()->close();
$trashStatus = OCA\Files_Trashbin\Trashbin::isEmpty(OCP\User::getUser());
diff --git a/apps/files_trashbin/ajax/list.php b/apps/files_trashbin/ajax/list.php
index 6cad101d34a..e25301a26cb 100644
--- a/apps/files_trashbin/ajax/list.php
+++ b/apps/files_trashbin/ajax/list.php
@@ -1,6 +1,7 @@
<?php
OCP\JSON::checkLoggedIn();
+\OC::$server->getSession()->close();
// Load the files
$dir = isset( $_GET['dir'] ) ? $_GET['dir'] : '';
diff --git a/apps/files_trashbin/ajax/preview.php b/apps/files_trashbin/ajax/preview.php
index 32905b2a71c..1401e3b7a7d 100644
--- a/apps/files_trashbin/ajax/preview.php
+++ b/apps/files_trashbin/ajax/preview.php
@@ -6,6 +6,7 @@
* See the COPYING-README file.
*/
\OC_Util::checkLoggedIn();
+\OC::$server->getSession()->close();
if(!\OC_App::isEnabled('files_trashbin')){
exit;
diff --git a/apps/files_trashbin/ajax/undelete.php b/apps/files_trashbin/ajax/undelete.php
index 02d651925ca..ab7d57f5a7f 100644
--- a/apps/files_trashbin/ajax/undelete.php
+++ b/apps/files_trashbin/ajax/undelete.php
@@ -2,6 +2,7 @@
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
+\OC::$server->getSession()->close();
$files = $_POST['files'];
$dir = '/';