Skip to content

Commit

Permalink
suppress notices on clearing php buffer in sendFile
Browse files Browse the repository at this point in the history
  • Loading branch information
dirx committed May 23, 2014
1 parent 668c28c commit c8ed319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/SecureFileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function sendFile($file) {
}

// Clear PHP buffer, otherwise the script will try to allocate memory for entire file.
ob_end_flush();
@ob_end_flush();
// Prevent blocking of the session file by PHP. Without this the user can't visit another page of the same
// website during download (see http://konrness.com/php5/how-to-prevent-blocking-php-requests/)
session_write_close();
Expand Down

0 comments on commit c8ed319

Please sign in to comment.