commit | 274f7d1b42d6ed83c3b22106c945590c05599cdc | [log] [tgz] |
---|---|---|
author | Phil Sturgeon <email@philsturgeon.co.uk> | Mon Apr 23 08:33:49 2012 -0700 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Mon Apr 23 08:33:49 2012 -0700 |
tree | fd473fd5c8ffdfbef261fb14501024d59f834c1f | |
parent | 6f3fd0fe5e86f50422ab9398a33f7351986634b0 [diff] | |
parent | bbd9dd3df9d373fbac8560db926a9f70a5bde3b7 [diff] |
Merge pull request #1278 from samxli/develop Added fix for issue #1277
diff --git a/system/helpers/download_helper.php b/system/helpers/download_helper.php index 19192a1..8b87f81 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);