diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-10 14:39:27 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-10 14:39:27 +0100 |
commit | 58c216d0e8ea4bb6d72ac3382b67a7f4b02f3ed1 (patch) | |
tree | 124f368973b6d1e1cb44147d491e91547fd6b83a /apps/files/ajax/newfile.php | |
parent | 73a1ece7533b9d90305e11052947809b91850184 (diff) | |
download | nextcloud-server-58c216d0e8ea4bb6d72ac3382b67a7f4b02f3ed1.tar.gz nextcloud-server-58c216d0e8ea4bb6d72ac3382b67a7f4b02f3ed1.zip |
close the session on all file operations
Diffstat (limited to 'apps/files/ajax/newfile.php')
-rw-r--r-- | apps/files/ajax/newfile.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php index 0187b200759..1234cf11394 100644 --- a/apps/files/ajax/newfile.php +++ b/apps/files/ajax/newfile.php @@ -7,7 +7,8 @@ if(!OC_User::isLoggedIn()) { exit; } -session_write_close(); +\OC::$session->close(); + // Get the params $dir = isset( $_REQUEST['dir'] ) ? '/'.trim($_REQUEST['dir'], '/\\') : ''; $filename = isset( $_REQUEST['filename'] ) ? trim($_REQUEST['filename'], '/\\') : ''; |