Added XSRF check

This commit is contained in:
Lukas Reschke 2012-08-10 00:07:46 +02:00
parent 26a9d7ea71
commit ab97c04894
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@
require_once ("../../lib/base.php"); require_once ("../../lib/base.php");
OC_Util::checkAdminUser(); OC_Util::checkAdminUser();
OCP\JSON::callCheck();
$action=isset($_POST['action'])?$_POST['action']:$_GET['action']; $action=isset($_POST['action'])?$_POST['action']:$_GET['action'];
$result=false; $result=false;