From 03f6cb7d1029e4c3dbc7db89d1ef801896d70157 Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Sat, 4 Jul 2009 10:40:06 -0700 Subject: [PATCH] Fixes #10135: Downloading large attachments results in Internal Server Error - 500. --- file_download.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/file_download.php b/file_download.php index 889c533d7c..8bf3b8c980 100644 --- a/file_download.php +++ b/file_download.php @@ -88,6 +88,9 @@ @ob_end_clean(); } + # readfile below doesn't like output buffering (see #10135) + @ob_end_flush(); + # Make sure that IE can download the attachments under https. header( 'Pragma: public' );