summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/upload.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-07-07 15:58:11 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-07-07 15:58:11 +0200
commit0abcf0a421e26a17de00d3bf3a890da1f1689c16 (patch)
tree0cc91408477ffe54c1586db1bb1e22fb5ab65e80 /apps/files/ajax/upload.php
parentc63db28eafbe4745faf44a4774cc857e830939c9 (diff)
downloadnextcloud-server-0abcf0a421e26a17de00d3bf3a890da1f1689c16.tar.gz
nextcloud-server-0abcf0a421e26a17de00d3bf3a890da1f1689c16.zip
CSRF checks
Diffstat (limited to 'apps/files/ajax/upload.php')
-rw-r--r--apps/files/ajax/upload.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index b779924cfb4..5553cf5a13e 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -7,6 +7,7 @@
OCP\JSON::setContentTypeHeader('text/plain');
OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
if (!isset($_FILES['files'])) {
OCP\JSON::error(array("data" => array( "message" => "No file was uploaded. Unknown error" )));