summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorKo- <k.stoffelen@cs.ru.nl>2017-03-11 17:04:21 +0100
committerKo- <k.stoffelen@cs.ru.nl>2017-03-11 17:04:21 +0100
commit0024b67aaf1b5fd79a2e73789a4c903364162e54 (patch)
treec01ec94b8d871b0905ed550391ac7be5e5b10e52 /lib/base.php
parent801b600ec348edab2447866b349a0d163db94f15 (diff)
downloadnextcloud-server-0024b67aaf1b5fd79a2e73789a4c903364162e54.tar.gz
nextcloud-server-0024b67aaf1b5fd79a2e73789a4c903364162e54.zip
Check that set_time_limit is not disabled before calling it
Signed-off-by: Ko- <k.stoffelen@cs.ru.nl>
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 68178b06c5b..04b6d82b1df 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -616,7 +616,9 @@ class OC {
//Let´s try to overwrite some defaults anyway
//try to set the maximum execution time to 60min
- @set_time_limit(3600);
+ if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(3600);
+ }
@ini_set('max_execution_time', 3600);
@ini_set('max_input_time', 3600);