Skip to content

Commit

Permalink
add ingore_user_abort
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Nov 28, 2016
1 parent 9af2e7d commit c075d3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/private/Files/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c075d3d

Please sign in to comment.