summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-07-20 20:12:36 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-07-20 20:12:36 +0200
commit38271ded753bc9ea9943cef3c2706f8d71f3a58f (patch)
tree4a2bb2cd3ffe196721c448ef891d692171a925df /apps/bookmarks
parente52ab59b404d6d35ed8619da35b1f70404359212 (diff)
downloadnextcloud-server-38271ded753bc9ea9943cef3c2706f8d71f3a58f.tar.gz
nextcloud-server-38271ded753bc9ea9943cef3c2706f8d71f3a58f.zip
Added CSRF checks
Diffstat (limited to 'apps/bookmarks')
-rw-r--r--apps/bookmarks/ajax/addBookmark.php1
-rw-r--r--apps/bookmarks/ajax/delBookmark.php1
-rw-r--r--apps/bookmarks/ajax/editBookmark.php1
3 files changed, 3 insertions, 0 deletions
diff --git a/apps/bookmarks/ajax/addBookmark.php b/apps/bookmarks/ajax/addBookmark.php
index a2eb506f85e..b4d0f33d721 100644
--- a/apps/bookmarks/ajax/addBookmark.php
+++ b/apps/bookmarks/ajax/addBookmark.php
@@ -29,6 +29,7 @@ $RUNTIME_NOSETUPFS=true;
// Check if we are a user
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('bookmarks');
+OCP\JSON::callCheck();
require_once(OC::$APPSROOT . '/apps/bookmarks/bookmarksHelper.php');
$id = addBookmark($_POST['url'], $_POST['title'], $_POST['tags']);
diff --git a/apps/bookmarks/ajax/delBookmark.php b/apps/bookmarks/ajax/delBookmark.php
index 5a067701c9f..140da2a37d1 100644
--- a/apps/bookmarks/ajax/delBookmark.php
+++ b/apps/bookmarks/ajax/delBookmark.php
@@ -29,6 +29,7 @@ $RUNTIME_NOSETUPFS=true;
// Check if we are a user
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('bookmarks');
+OCP\JSON::callCheck();
$id = $_POST['id'];
if (!OC_Bookmarks_Bookmarks::deleteUrl($id)){
diff --git a/apps/bookmarks/ajax/editBookmark.php b/apps/bookmarks/ajax/editBookmark.php
index 439b680dc20..36258f70961 100644
--- a/apps/bookmarks/ajax/editBookmark.php
+++ b/apps/bookmarks/ajax/editBookmark.php
@@ -29,6 +29,7 @@ $RUNTIME_NOSETUPFS=true;
// Check if we are a user
OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('bookmarks');
+OCP\JSON::callCheck();
$CONFIG_DBTYPE = OCP\Config::getSystemValue( "dbtype", "sqlite" );
if( $CONFIG_DBTYPE == 'sqlite' or $CONFIG_DBTYPE == 'sqlite3' ){