Added missing CSRF checks.

remotes/origin/stable5
Thomas Tanghus 13 years ago
parent 748fcabba4
commit 2c9aa029a7
  1. 1
      apps/contacts/ajax/categories/delete.php
  2. 1
      apps/contacts/ajax/categories/rescan.php

@ -9,6 +9,7 @@
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts'); OCP\JSON::checkAppEnabled('contacts');
OCP\JSON::callCheck();
require_once('../loghandler.php'); require_once('../loghandler.php');

@ -9,6 +9,7 @@
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('contacts'); OCP\JSON::checkAppEnabled('contacts');
OCP\JSON::callCheck();
OC_Contacts_App::scanCategories(); OC_Contacts_App::scanCategories();
$categories = OC_Contacts_App::getCategories(); $categories = OC_Contacts_App::getCategories();

Loading…
Cancel
Save