summaryrefslogtreecommitdiffstats
path: root/apps/calendar/ajax/share/share.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-07-20 15:45:17 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-07-20 15:45:17 +0200
commitc04aa8d6a99869aa51595b61207063f97488eb8e (patch)
tree93b24e007d07836150bec333a99a7edd96f53bf7 /apps/calendar/ajax/share/share.php
parentbd91ee4d2289b15fa69c3712056f275cac3405ed (diff)
downloadnextcloud-server-c04aa8d6a99869aa51595b61207063f97488eb8e.tar.gz
nextcloud-server-c04aa8d6a99869aa51595b61207063f97488eb8e.zip
Add CSRF checks
Diffstat (limited to 'apps/calendar/ajax/share/share.php')
-rw-r--r--apps/calendar/ajax/share/share.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/calendar/ajax/share/share.php b/apps/calendar/ajax/share/share.php
index 838db619f62..77e1ab9d657 100644
--- a/apps/calendar/ajax/share/share.php
+++ b/apps/calendar/ajax/share/share.php
@@ -6,6 +6,8 @@
* See the COPYING-README file.
*/
+OCP\JSON::callCheck();
+
$id = strip_tags($_POST['id']);
$idtype = strip_tags($_POST['idtype']);
switch($idtype){