aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-11-19 22:30:57 +0100
committerGitHub <noreply@github.com>2024-11-19 22:30:57 +0100
commit1333f20bb0ba695a57ec05c47a4892410c4de658 (patch)
tree977c4f1b0b6646f97d7b178fe691504351302198
parentaf14ff066c28272128b49661e8cd209fe549919c (diff)
parent52020b5ea61530f53ece1be391d164450ecddb38 (diff)
downloadnextcloud-server-1333f20bb0ba695a57ec05c47a4892410c4de658.tar.gz
nextcloud-server-1333f20bb0ba695a57ec05c47a4892410c4de658.zip
Merge pull request #49387 from nextcloud/backport/49384/master
-rw-r--r--apps/settings/lib/SetupChecks/PhpMaxFileSize.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/settings/lib/SetupChecks/PhpMaxFileSize.php b/apps/settings/lib/SetupChecks/PhpMaxFileSize.php
index 942a8408e81..d81cbe6d45c 100644
--- a/apps/settings/lib/SetupChecks/PhpMaxFileSize.php
+++ b/apps/settings/lib/SetupChecks/PhpMaxFileSize.php
@@ -33,8 +33,8 @@ class PhpMaxFileSize implements ISetupCheck {
}
public function run(): SetupResult {
- $upload_max_filesize = Util::computerFileSize((string)$this->iniGetWrapper->getString('upload_max_filesize'));
- $post_max_size = Util::computerFileSize((string)$this->iniGetWrapper->getString('post_max_size'));
+ $upload_max_filesize = (string)$this->iniGetWrapper->getString('upload_max_filesize');
+ $post_max_size = (string)$this->iniGetWrapper->getString('post_max_size');
$max_input_time = (int)$this->iniGetWrapper->getString('max_input_time');
$max_execution_time = (int)$this->iniGetWrapper->getString('max_execution_time');
@@ -43,16 +43,16 @@ class PhpMaxFileSize implements ISetupCheck {
$recommendedTime = 3600;
// Check if the PHP upload limit is too low
- if ($upload_max_filesize < $recommendedSize) {
+ if (Util::computerFileSize($upload_max_filesize) < $recommendedSize) {
$warnings[] = $this->l10n->t('The PHP upload_max_filesize is too low. A size of at least %1$s is recommended. Current value: %2$s.', [
Util::humanFileSize($recommendedSize),
- Util::humanFileSize($upload_max_filesize),
+ $upload_max_filesize,
]);
}
- if ($post_max_size < $recommendedSize) {
+ if (Util::computerFileSize($post_max_size) < $recommendedSize) {
$warnings[] = $this->l10n->t('The PHP post_max_size is too low. A size of at least %1$s is recommended. Current value: %2$s.', [
Util::humanFileSize($recommendedSize),
- Util::humanFileSize($post_max_size),
+ $post_max_size,
]);
}