Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorszaimen <szaimen@e.mail.de>2022-08-30 19:36:50 +0300
committerszaimen <szaimen@e.mail.de>2022-08-30 19:36:50 +0300
commit356c732904d24f8eab722352529e9f97d4f7272b (patch)
treed889bbec4576c320b698e5c53dd5f8272dbede1f
parent6601fbd8efc8943afa187ba422bc975482ef5073 (diff)
fix the backport
Signed-off-by: szaimen <szaimen@e.mail.de>
-rw-r--r--lib/base.php10
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) {