Merge pull request #1434 from owncloud/trashbin_CSRF

[files_trashbin] Add CSRF token
This commit is contained in:
Björn Schießle 2013-02-04 02:14:52 -08:00
commit fee3f80501
1 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,7 @@
<?php
if(!OCP\User::isLoggedIn()) {
exit;
}
OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck();
$files = $_REQUEST['files'];
$dirlisting = $_REQUEST['dirlisting'];