]> source.dussan.org Git - nextcloud-server.git/commitdiff
CSRF check
authorLukas Reschke <lukas@statuscode.ch>
Sat, 7 Jul 2012 13:54:52 +0000 (15:54 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Sat, 7 Jul 2012 13:54:52 +0000 (15:54 +0200)
apps/bookmarks/ajax/addBookmark.php
apps/bookmarks/ajax/delBookmark.php
apps/bookmarks/ajax/editBookmark.php

index 6b5a0f71d4e8bb72c80bde82d0f109f4c437264a..483716405a1e6f92ccf2e3de6d9c32e92acc0810 100644 (file)
@@ -28,6 +28,8 @@ $RUNTIME_NOSETUPFS=true;
 
 // Check if we are a user
 OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
+
 OCP\JSON::checkAppEnabled('bookmarks');
 
 require_once(OC_App::getAppPath('bookmarks').'/bookmarksHelper.php');
index 5a067701c9fb165ba9e870a9b7f23680cd829e47..f40f02ebab7ccd0b786bb768df5ead839c645157 100644 (file)
@@ -28,6 +28,8 @@ $RUNTIME_NOSETUPFS=true;
 
 // Check if we are a user
 OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
+
 OCP\JSON::checkAppEnabled('bookmarks');
 
 $id = $_POST['id'];
index 439b680dc20ae9088089a4d67b2f17a02767f893..0b37d161af1c772041bb07caa9a539df4b62de16 100644 (file)
@@ -28,6 +28,8 @@ $RUNTIME_NOSETUPFS=true;
 
 // Check if we are a user
 OCP\JSON::checkLoggedIn();
+OCP\JSON::callCheck();
+
 OCP\JSON::checkAppEnabled('bookmarks');
 
 $CONFIG_DBTYPE = OCP\Config::getSystemValue( "dbtype", "sqlite" );