CSRF check
This commit is contained in:
parent
b46d3019ca
commit
c63db28eaf
|
@ -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');
|
||||
|
|
|
@ -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'];
|
||||
|
|
|
@ -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" );
|
||||
|
|
Loading…
Reference in New Issue