Skip to content

Commit 5a414b6

Browse files
author
Vincent Petry
committed
Add ignore_user_abort everywhere where the time limit is set to 0
1 parent 944ad7d commit 5a414b6

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

apps/dav/appinfo/v1/webdav.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
// no php execution timeout for webdav
2626
set_time_limit(0);
27+
ignore_user_abort(true);
2728

2829
// Turn off output buffering to prevent memory problems
2930
\OC_Util::obEnd();

apps/dav/appinfo/v2/remote.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222
// no php execution timeout for webdav
2323
set_time_limit(0);
24+
ignore_user_abort(true);
2425

2526
// Turn off output buffering to prevent memory problems
2627
\OC_Util::obEnd();

lib/private/legacy/files.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ public static function get($dir, $files, $params = null) {
147147
$streamer->sendHeaders($name);
148148
$executionTime = intval(OC::$server->getIniWrapper()->getNumeric('max_execution_time'));
149149
set_time_limit(0);
150+
ignore_user_abort(true);
150151
if ($getType === self::ZIP_FILES) {
151152
foreach ($files as $file) {
152153
$file = $dir . '/' . $file;

0 commit comments

Comments
 (0)