Merge pull request #45114 from nextcloud/backport/45107/stable28

[stable28] fix: Fix default values for ini var in lib/base.php
This commit is contained in:
Côme Chilliet 2024-04-30 16:20:49 +02:00 committed by GitHub
commit 706ec3b5b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -656,11 +656,11 @@ class OC {
//this doesn´t work always depending on the webserver and php configuration.
//Let´s try to overwrite some defaults if they are smaller than 1 hour
if (intval(@ini_get('max_execution_time') ?? 0) < 3600) {
if (intval(@ini_get('max_execution_time') ?: 0) < 3600) {
@ini_set('max_execution_time', strval(3600));
}
if (intval(@ini_get('max_input_time') ?? 0) < 3600) {
if (intval(@ini_get('max_input_time') ?: 0) < 3600) {
@ini_set('max_input_time', strval(3600));
}