]> source.dussan.org Git - nextcloud-server.git/commitdiff
CSRF checks
authorLukas Reschke <lukas@statuscode.ch>
Sat, 7 Jul 2012 14:03:21 +0000 (16:03 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Sat, 7 Jul 2012 14:03:21 +0000 (16:03 +0200)
apps/files_sharing/ajax/email.php
apps/files_sharing/ajax/setpermissions.php
apps/files_sharing/ajax/share.php
apps/files_sharing/ajax/unshare.php

index 523c3d2078b66dacca21860bd0b346380c3b3215..e1dccb7d0fad7099d27b0c99b376e0c65a58f457 100644 (file)
@@ -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';
index 4d19cd40f2d4fd5ee07d72f26eff2bf7816c8e6a..31b7a3878ef2fa7830c4bbcf5568bdcd7a9ba024 100644 (file)
@@ -2,6 +2,7 @@
 
 OCP\JSON::checkAppEnabled('files_sharing');
 OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
 
 $source = '/'.OCP\USER::getUser().'/files'.$_POST['source'];
 $uid_shared_with = $_POST['uid_shared_with'];
index 1ee8c3f791a6d214be1d358168f2cbb2ac003f97..f4f2172d25124e486de257f4516f1caed9eed8a0 100644 (file)
@@ -2,6 +2,7 @@
 
 OCP\JSON::checkAppEnabled('files_sharing');
 OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
 
 $userDirectory = '/'.OCP\USER::getUser().'/files';
 $sources = explode(';', $_POST['sources']);
index d50e7963a0551eb143f7f9b2181cec94e71def06..44ffdb1a5bca4abe034577ff9bca5534d98bcebc 100644 (file)
@@ -2,6 +2,7 @@
 
 OCP\JSON::checkAppEnabled('files_sharing');
 OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
 
 $source = '/'.OCP\USER::getUser().'/files'.$_POST['source'];
 $uid_shared_with = $_POST['uid_shared_with'];