diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2005-04-30 14:36:33 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2005-04-30 14:36:33 +0000 |
commit | be3bdf61d778928916942c07c6d60968fddf9d18 (patch) | |
tree | f1b2941da4725d9de0c54c5cacdd2343abcf5b85 /phpBB/download.php | |
parent | 75012dec17b0cf47023f4b81cfba2034ecd47419 (diff) | |
download | forums-be3bdf61d778928916942c07c6d60968fddf9d18.tar forums-be3bdf61d778928916942c07c6d60968fddf9d18.tar.gz forums-be3bdf61d778928916942c07c6d60968fddf9d18.tar.bz2 forums-be3bdf61d778928916942c07c6d60968fddf9d18.tar.xz forums-be3bdf61d778928916942c07c6d60968fddf9d18.zip |
- some fixes here and there
git-svn-id: file:///svn/phpbb/trunk@5138 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/download.php')
-rw-r--r-- | phpBB/download.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/download.php b/phpBB/download.php index 4de5aebf1a..2ddbd42fe0 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -204,14 +204,13 @@ function send_file_to_browser($attachment, $upload_dir, $category) $attachment['mimetype'] = ($browser_agent == 'ie' || $browser_agent == 'opera') ? 'application/octetstream' : 'application/octet-stream'; } - if ($config['gzip_compress']) + if (@ob_get_length()) { @ob_end_clean(); } // Now the tricky part... let's dance header('Pragma: public'); -// header('Content-Transfer-Encoding: none'); // Send out the Headers header('Content-Type: ' . $attachment['mimetype'] . '; name="' . $attachment['real_filename'] . '"'); |