summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/email.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/email.php
parentb7c510a61a5eaeba76284628fe76fc60b7035aed (diff)
downloadnextcloud-server-04a0755fd364b16bfb461382b1409fbb6336a359.tar.gz
nextcloud-server-04a0755fd364b16bfb461382b1409fbb6336a359.zip
CSRF checks
Diffstat (limited to 'apps/files_sharing/ajax/email.php')
-rw-r--r--apps/files_sharing/ajax/email.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/ajax/email.php b/apps/files_sharing/ajax/email.php
index 523c3d2078b..e1dccb7d0fa 100644
--- a/apps/files_sharing/ajax/email.php
+++ b/apps/files_sharing/ajax/email.php
@@ -1,6 +1,8 @@
<?php
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('files_sharing');
+OCP\JSON::callCheck();
+
$user = OCP\USER::getUser();
// TODO translations
$type = (strpos($_POST['file'], '.') === false) ? 'folder' : 'file';