CSRF checks

remotes/origin/stable5
Lukas Reschke 2012-07-07 16:12:21 +07:00
parent 2c318f45f4
commit ea70ca3ce3
2 changed files with 4 additions and 0 deletions

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

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