diff options
author | Sam Li <samxli@yahoo.com> | 2012-04-23 17:04:35 +0200 |
---|---|---|
committer | Sam Li <samxli@yahoo.com> | 2012-04-23 17:04:35 +0200 |
commit | d52e3b19eb03bcd38f89ccbf5aae68364f715343 (patch) | |
tree | 0dbdddd5e0f116c0a78f459ef5dd45da46c0f91b | |
parent | 6f3fd0fe5e86f50422ab9398a33f7351986634b0 (diff) |
Added fix for issue: https://github.com/EllisLab/CodeIgniter/issues/1277
-rw-r--r-- | system/helpers/download_helper.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php index 19192a147..18fe96223 100644 --- a/system/helpers/download_helper.php +++ b/system/helpers/download_helper.php @@ -100,6 +100,9 @@ if ( ! function_exists('force_download')) $x[count($x) - 1] = strtoupper($extension); $filename = implode('.', $x); } + + //Clean output buffer + ob_clean(); // Generate the server headers header('Content-Type: '.$mime); |