diff options
Diffstat (limited to 'apps/files/lib/Settings')
-rw-r--r-- | apps/files/lib/Settings/Admin.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/files/lib/Settings/Admin.php b/apps/files/lib/Settings/Admin.php index 9ec23d47517..da1d5deaf35 100644 --- a/apps/files/lib/Settings/Admin.php +++ b/apps/files/lib/Settings/Admin.php @@ -53,13 +53,6 @@ class Admin implements ISettings { $upload_max_filesize = $this->iniWrapper->getBytes('upload_max_filesize'); $post_max_size = $this->iniWrapper->getBytes('post_max_size'); $maxUploadFilesize = Util::humanFileSize(min($upload_max_filesize, $post_max_size)); - if($_POST && $this->request->passesCSRFCheck()) { - if(isset($_POST['maxUploadSize'])) { - if(($setMaxSize = \OC_Files::setUploadLimit(Util::computerFileSize($_POST['maxUploadSize']))) !== false) { - $maxUploadFilesize = Util::humanFileSize($setMaxSize); - } - } - } $parameters = [ 'uploadChangable' => (($htaccessWorking and $htaccessWritable) or $userIniWritable ), |