diff options
author | szaimen <szaimen@e.mail.de> | 2022-08-30 18:36:50 +0200 |
---|---|---|
committer | szaimen <szaimen@e.mail.de> | 2022-08-30 18:36:50 +0200 |
commit | 356c732904d24f8eab722352529e9f97d4f7272b (patch) | |
tree | d889bbec4576c320b698e5c53dd5f8272dbede1f /lib | |
parent | 6601fbd8efc8943afa187ba422bc975482ef5073 (diff) | |
download | nextcloud-server-356c732904d24f8eab722352529e9f97d4f7272b.tar.gz nextcloud-server-356c732904d24f8eab722352529e9f97d4f7272b.zip |
fix the backport
Signed-off-by: szaimen <szaimen@e.mail.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index dd28f2bb254..50762f7a7ca 100644 --- a/lib/base.php +++ b/lib/base.php @@ -612,7 +612,15 @@ class OC { //try to configure php to enable big file uploads. //this doesn´t work always depending on the webserver and php configuration. - //Let´s try to overwrite some defaults anyway + //Let´s try to overwrite some defaults if they are smaller than 1 hour + + 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) { + @ini_set('max_input_time', strval(3600)); + } //try to set the maximum execution time to the largest time limit we have if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) { |