Set real content-type for file downloads (#1489439)

pull/157/head
Aleksander Machniak 11 years ago
parent fac292a410
commit 8c5f405587

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail
===========================
- Set real content-type for file downloads (#1489439)
- Update TinyMCE to version 3.5.10 (#1489442)
- Fix keyboard navigation in list widgets (#1489392)
- Allow plugins to grab the reference of opened windows (#1489413)

@ -220,13 +220,7 @@ else if (strlen($part_id)) {
$browser = $RCMAIL->output->browser;
list($ctype_primary, $ctype_secondary) = explode('/', $mimetype);
// send download headers
if ($plugin['download']) {
header("Content-Type: application/octet-stream");
if ($browser->ie)
header("Content-Type: application/force-download");
}
else if ($ctype_primary == 'text') {
if (!$plugin['download'] && $ctype_primary == 'text') {
header("Content-Type: text/$ctype_secondary; charset=" . ($part->charset ? $part->charset : RCMAIL_CHARSET));
}
else {

Loading…
Cancel
Save