commit | d52e3b19eb03bcd38f89ccbf5aae68364f715343 | [log] [tgz] |
---|---|---|
author | Sam Li <samxli@yahoo.com> | Mon Apr 23 23:04:35 2012 +0800 |
committer | Sam Li <samxli@yahoo.com> | Mon Apr 23 23:04:35 2012 +0800 |
tree | 0dbdddd5e0f116c0a78f459ef5dd45da46c0f91b | |
parent | 6f3fd0fe5e86f50422ab9398a33f7351986634b0 [diff] [blame] |
Added fix for issue: https://github.com/EllisLab/CodeIgniter/issues/1277
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php index 19192a1..18fe962 100644 --- a/system/helpers/download_helper.php +++ b/system/helpers/download_helper.php
@@ -100,6 +100,9 @@ $x[count($x) - 1] = strtoupper($extension); $filename = implode('.', $x); } + + //Clean output buffer + ob_clean(); // Generate the server headers header('Content-Type: '.$mime);