summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/share.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-07-07 16:03:21 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-07-07 16:03:21 +0200
commit04a0755fd364b16bfb461382b1409fbb6336a359 (patch)
treeb0cd8559ab0bfc58079c6e7ef951788468d6a8e9 /apps/files_sharing/ajax/share.php
parentb7c510a61a5eaeba76284628fe76fc60b7035aed (diff)
downloadnextcloud-server-04a0755fd364b16bfb461382b1409fbb6336a359.tar.gz
nextcloud-server-04a0755fd364b16bfb461382b1409fbb6336a359.zip
CSRF checks
Diffstat (limited to 'apps/files_sharing/ajax/share.php')
-rw-r--r--apps/files_sharing/ajax/share.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php
index 1ee8c3f791a..f4f2172d251 100644
--- a/apps/files_sharing/ajax/share.php
+++ b/apps/files_sharing/ajax/share.php
@@ -2,6 +2,7 @@
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
$userDirectory = '/'.OCP\USER::getUser().'/files';
$sources = explode(';', $_POST['sources']);