summaryrefslogtreecommitdiffstats
path: root/system/helpers/download_helper.php
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2012-04-23 17:57:38 +0200
committerTimothy Warren <tim@timshomepage.net>2012-04-23 17:57:38 +0200
commitc8a2a60c1075e5f725967962663127dad0f9e2e1 (patch)
treed877440f9c3ba20f132ad1c91f70600b77ada409 /system/helpers/download_helper.php
parent31d30bcf206ed2e9168b93f74511708d6bc4b505 (diff)
parent274f7d1b42d6ed83c3b22106c945590c05599cdc (diff)
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into patch
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..8b87f8179 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);