aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/scan.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-10 14:39:27 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-10 14:39:27 +0100
commit58c216d0e8ea4bb6d72ac3382b67a7f4b02f3ed1 (patch)
tree124f368973b6d1e1cb44147d491e91547fd6b83a /apps/files/ajax/scan.php
parent73a1ece7533b9d90305e11052947809b91850184 (diff)
downloadnextcloud-server-58c216d0e8ea4bb6d72ac3382b67a7f4b02f3ed1.tar.gz
nextcloud-server-58c216d0e8ea4bb6d72ac3382b67a7f4b02f3ed1.zip
close the session on all file operations
Diffstat (limited to 'apps/files/ajax/scan.php')
-rw-r--r--apps/files/ajax/scan.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php
index 5b32b6db9b7..d5d88483801 100644
--- a/apps/files/ajax/scan.php
+++ b/apps/files/ajax/scan.php
@@ -1,6 +1,6 @@
<?php
set_time_limit(0); //scanning can take ages
-session_write_close();
+\OC::$session->close();
$force = (isset($_GET['force']) and ($_GET['force'] === 'true'));
$dir = isset($_GET['dir']) ? $_GET['dir'] : '';