summaryrefslogtreecommitdiffstats
path: root/system/helpers/download_helper.php
diff options
context:
space:
mode:
authorSam Li <samxli@yahoo.com>2012-04-23 17:04:35 +0200
committerSam Li <samxli@yahoo.com>2012-04-23 17:04:35 +0200
commitd52e3b19eb03bcd38f89ccbf5aae68364f715343 (patch)
tree0dbdddd5e0f116c0a78f459ef5dd45da46c0f91b /system/helpers/download_helper.php
parent6f3fd0fe5e86f50422ab9398a33f7351986634b0 (diff)
Added fix for issue: https://github.com/EllisLab/CodeIgniter/issues/1277
Diffstat (limited to 'system/helpers/download_helper.php')
-rw-r--r--system/helpers/download_helper.php3
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);