CSRF checks

This commit is contained in:
Lukas Reschke 2012-07-07 16:12:21 +02:00
parent 2c318f45f4
commit ea70ca3ce3
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
<?php
OCP\JSON::checkAppEnabled('files_external');
OCP\JSON::callCheck();
if ($_POST['isPersonal'] == 'true') {
OCP\JSON::checkLoggedIn();
$isPersonal = true;

View File

@ -1,6 +1,8 @@
<?php
OCP\JSON::checkAppEnabled('files_external');
OCP\JSON::callCheck();
if ($_POST['isPersonal'] == 'true') {
OCP\JSON::checkLoggedIn();
$isPersonal = true;