Added missing CSRF checks.
This commit is contained in:
parent
748fcabba4
commit
2c9aa029a7
2 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('contacts');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
require_once('../loghandler.php');
|
||||
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('contacts');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
OC_Contacts_App::scanCategories();
|
||||
$categories = OC_Contacts_App::getCategories();
|
||||
|
|
Loading…
Reference in a new issue