Skip to content
Snippets Groups Projects
Commit 71bbf57d authored by Benni Mack's avatar Benni Mack Committed by Susanne Moog
Browse files

[BUGFIX] Differ between upload_max_filesize / post_max_size

The environment status should show proper information whether both
PHP.ini settings have the same value or differ (but post_max_size is higher
which is fine).

Resolves: #89543
Releases: master, 9.5
Change-Id: Ib589715507d7e929904366cbda9b33b45e254564
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63879


Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
parent ca832336
Branches
Tags
No related merge requests found
......@@ -200,11 +200,16 @@ class Check implements CheckInterface
'Maximum size for POST requests is smaller than maximum upload filesize in PHP',
FlashMessage::ERROR
));
} else {
} elseif ($maximumPostSize === $maximumUploadFilesize) {
$this->messageQueue->enqueue(new FlashMessage(
'The maximum size for file uploads is actually set to ' . ini_get('upload_max_filesize'),
'The maximum size for file uploads is set to ' . ini_get('upload_max_filesize'),
'Maximum post upload size correlates with maximum upload file size in PHP'
));
} else {
$this->messageQueue->enqueue(new FlashMessage(
'The maximum size for file uploads is set to ' . ini_get('upload_max_filesize'),
'Maximum post upload size is higher than maximum upload file size in PHP, which is fine.'
));
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment