summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-12-18 15:43:13 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-22 09:32:14 +0100
commit6f00729124053a8348f95a53d318317eb6d583fc (patch)
tree46650e0d86f9ab921cccc324fbc1df5b017c1318 /apps
parent152e72c4fcf7d4003924818fae9b1c2f86d6cd2a (diff)
downloadnextcloud-server-6f00729124053a8348f95a53d318317eb6d583fc.tar.gz
nextcloud-server-6f00729124053a8348f95a53d318317eb6d583fc.zip
Refactor OC_Util::callCheck
Diffstat (limited to 'apps')
-rw-r--r--apps/files/admin.php2
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);