diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 15:43:13 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-12-22 09:32:14 +0100 |
commit | 6f00729124053a8348f95a53d318317eb6d583fc (patch) | |
tree | 46650e0d86f9ab921cccc324fbc1df5b017c1318 /apps | |
parent | 152e72c4fcf7d4003924818fae9b1c2f86d6cd2a (diff) | |
download | nextcloud-server-6f00729124053a8348f95a53d318317eb6d583fc.tar.gz nextcloud-server-6f00729124053a8348f95a53d318317eb6d583fc.zip |
Refactor OC_Util::callCheck
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/admin.php b/apps/files/admin.php index f23f9b52698..a2092c600a7 100644 --- a/apps/files/admin.php +++ b/apps/files/admin.php @@ -33,7 +33,7 @@ $htaccessWorking=(getenv('htaccessWorking')=='true'); $upload_max_filesize = OC::$server->getIniWrapper()->getBytes('upload_max_filesize'); $post_max_size = OC::$server->getIniWrapper()->getBytes('post_max_size'); $maxUploadFilesize = OCP\Util::humanFileSize(min($upload_max_filesize, $post_max_size)); -if($_POST && OC_Util::isCallRegistered()) { +if($_POST && \OC::$server->getRequest()->passesCSRFCheck()) { if(isset($_POST['maxUploadSize'])) { if(($setMaxSize = OC_Files::setUploadLimit(OCP\Util::computerFileSize($_POST['maxUploadSize']))) !== false) { $maxUploadFilesize = OCP\Util::humanFileSize($setMaxSize); |