summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-04-23 17:33:49 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-04-23 17:33:49 +0200
commit274f7d1b42d6ed83c3b22106c945590c05599cdc (patch)
treefd473fd5c8ffdfbef261fb14501024d59f834c1f /system/helpers
parent6f3fd0fe5e86f50422ab9398a33f7351986634b0 (diff)
parentbbd9dd3df9d373fbac8560db926a9f70a5bde3b7 (diff)
Merge pull request #1278 from samxli/develop
Added fix for issue #1277
Diffstat (limited to 'system/helpers')
-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);