Преглед на файлове

fix: Fix default values for ini var in lib/base.php

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
tags/v28.0.6rc1
Côme Chilliet преди 1 месец
родител
ревизия
8915a984d3
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      lib/base.php

+ 2
- 2
lib/base.php Целия файл

@@ -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));
}


Loading…
Отказ
Запис