summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-03-16 12:27:26 +0100
committerGitHub <noreply@github.com>2017-03-16 12:27:26 +0100
commit57c1be8633103f2e2ca74bad186c332713f4ef83 (patch)
treea4b6b444ffcce7162ba8d2805ebc999526c9636b /lib/private/legacy
parent7ca2f5f1374e2a1493c652772b4392f844346c52 (diff)
parent786ee72146773966ed774ee9a8128fbb2a2a713a (diff)
downloadnextcloud-server-57c1be8633103f2e2ca74bad186c332713f4ef83.tar.gz
nextcloud-server-57c1be8633103f2e2ca74bad186c332713f4ef83.zip
Merge pull request #3802 from Ko-/master
Check that set_time_limit is not disabled before calling it
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/files.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/legacy/files.php b/lib/private/legacy/files.php
index 8c9adad0d49..ed3aa719409 100644
--- a/lib/private/legacy/files.php
+++ b/lib/private/legacy/files.php
@@ -147,7 +147,9 @@ class OC_Files {
$streamer->sendHeaders($name);
$executionTime = intval(OC::$server->getIniWrapper()->getNumeric('max_execution_time'));
- set_time_limit(0);
+ if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+ @set_time_limit(0);
+ }
ignore_user_abort(true);
if ($getType === self::ZIP_FILES) {
foreach ($files as $file) {