1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2025-01-18 14:52:10 +01:00

Check requesttoken

This commit is contained in:
Lukas Reschke 2013-02-12 11:19:51 +01:00
parent dffa4b11b4
commit 4df7be4130
2 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@
// Check if we are a user
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
OCP\JSON::checkAppEnabled('bookmarks');
$query = OCP\DB::prepare('

View File

@ -28,6 +28,7 @@ $RUNTIME_NOSETUPFS=true;
// Check if we are a user
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
OCP\JSON::checkAppEnabled('bookmarks');
if(isset($_POST['old_name']) && isset($_POST['new_name']) && $_POST['new_name'] != '') {