diff options
author | Vincent Petry <pvince81@owncloud.com> | 2017-01-13 12:55:08 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-01-23 12:33:20 +0100 |
commit | 0aaf209c667250b2b5ad5eedd8af0807136e46d4 (patch) | |
tree | bf833bd1a086ef95261f4541d41499b8e80cd0b7 /lib/private/legacy | |
parent | 012e52123900dcaab29989ab12b1848abe8d0a11 (diff) | |
download | nextcloud-server-0aaf209c667250b2b5ad5eedd8af0807136e46d4.tar.gz nextcloud-server-0aaf209c667250b2b5ad5eedd8af0807136e46d4.zip |
Prevent PHP request to get killed when using fclose callback (#26775)
* Prevent PHP request to get killed when using fclose callback
* Add ignore_user_abort everywhere where the time limit is set to 0
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r-- | lib/private/legacy/files.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/legacy/files.php b/lib/private/legacy/files.php index b6c6857a1bf..8c9adad0d49 100644 --- a/lib/private/legacy/files.php +++ b/lib/private/legacy/files.php @@ -148,6 +148,7 @@ class OC_Files { $streamer->sendHeaders($name); $executionTime = intval(OC::$server->getIniWrapper()->getNumeric('max_execution_time')); set_time_limit(0); + ignore_user_abort(true); if ($getType === self::ZIP_FILES) { foreach ($files as $file) { $file = $dir . '/' . $file; |