mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
CSRF checks
This commit is contained in:
parent
2c318f45f4
commit
ea70ca3ce3
2 changed files with 4 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
OCP\JSON::checkAppEnabled('files_external');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
if ($_POST['isPersonal'] == 'true') {
|
||||
OCP\JSON::checkLoggedIn();
|
||||
$isPersonal = true;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
OCP\JSON::checkAppEnabled('files_external');
|
||||
OCP\JSON::callCheck();
|
||||
|
||||
if ($_POST['isPersonal'] == 'true') {
|
||||
OCP\JSON::checkLoggedIn();
|
||||
$isPersonal = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue