diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 6f38c7bd223b..316bfea610c4 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -420,6 +420,7 @@ public function filesize($path) { * @throws \OCP\Files\InvalidPathException */ public function readfile($path) { + ignore_user_abort(); $this->assertPathLength($path); @ob_end_clean(); \OCP\Util::writeLog('DEBUG', 'readfile: fopen', \OCP\Util::DEBUG); @@ -450,6 +451,7 @@ public function readfile($path) { * @throws \OCP\Files\UnseekableException */ public function readfilePart($path, $from, $to) { + ignore_user_abort(); $this->assertPathLength($path); @ob_end_clean(); \OCP\Util::writeLog('DEBUG', 'readfilePart: fopen', \OCP\Util::DEBUG);