diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-04-23 17:33:49 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-04-23 17:33:49 +0200 |
commit | 274f7d1b42d6ed83c3b22106c945590c05599cdc (patch) | |
tree | fd473fd5c8ffdfbef261fb14501024d59f834c1f /system/helpers | |
parent | 6f3fd0fe5e86f50422ab9398a33f7351986634b0 (diff) | |
parent | bbd9dd3df9d373fbac8560db926a9f70a5bde3b7 (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.php | 3 |
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); |