Skip to content

Commit

Permalink
Merge pull request #45107 from nextcloud/backport/fix-ini-default-in-…
Browse files Browse the repository at this point in the history
…base

[stable29] fix: Fix default values for ini var in lib/base.php
  • Loading branch information
come-nc authored Apr 30, 2024
2 parents 76fa0c3 + 2b1e7f3 commit 24eb8ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,11 +662,11 @@ public static function init(): void {
//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));
}

Expand Down

0 comments on commit 24eb8ae

Please sign in to comment.