mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
Added CSRF checks to Tasks. Expect some error messages - and report them ;)
This commit is contained in:
parent
06ff6c6d7d
commit
8444fc5787
4 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
// Init owncloud
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('tasks');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
$calendars = OC_Calendar_Calendar::allCalendars(OCP\User::getUser(), true);
|
||||
$first_calendar = reset($calendars);
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
// Init owncloud
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('tasks');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
$id = $_POST['id'];
|
||||
$task = OC_Calendar_App::getEventObject( $id );
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
// Init owncloud
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('tasks');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
$l10n = new OC_L10N('tasks');
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// Init owncloud
|
||||
OCP\JSON::checkLoggedIn();
|
||||
OCP\JSON::checkAppEnabled('tasks');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
$id = $_POST['id'];
|
||||
$property = $_POST['type'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue