Browse Source

CSRF checks

remotes/origin/stable5
Lukas Reschke 14 years ago
parent
commit
ea70ca3ce3
  1. 2
      apps/files_external/ajax/addMountPoint.php
  2. 2
      apps/files_external/ajax/removeMountPoint.php

2
apps/files_external/ajax/addMountPoint.php

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

2
apps/files_external/ajax/removeMountPoint.php

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

Loading…
Cancel
Save