- Don't set attachment's charset in Content-type header (#1487122)

release-0.6
alecpl 14 years ago
parent effdb3c01d
commit 0f9d8ca40d

@ -73,6 +73,7 @@ CHANGELOG Roundcube Webmail
- Fix focused elements aren't unfocused when clicking on the list (#1487123) - Fix focused elements aren't unfocused when clicking on the list (#1487123)
- Fix error in MSSQL DDL scripts (#1487112) - Fix error in MSSQL DDL scripts (#1487112)
- Lock submit button in onsubmit event on login page (#1487036) - Lock submit button in onsubmit event on login page (#1487036)
- Don't set attachment's charset in Content-type header (#1487122)
RELEASE 0.4.2 RELEASE 0.4.2
------------- -------------

@ -477,9 +477,9 @@ function rc_mime_content_type($path, $name, $failover = 'application/octet-strea
$mime_type = $failover; $mime_type = $failover;
} }
else { else {
// sometimes content-type contains charset definition, // Sometimes (PHP-5.3?) content-type contains charset definition,
// remove useless "charset=binary", should we remove any charset def. here? // Remove it (#1487122) also "charset=binary" is useless
$mime_type = preg_replace('/; charset=binary;*/i', '', $mime_type); $mime_type = array_shift(preg_split('/[; ]/', $mime_type));
} }
return $mime_type; return $mime_type;

@ -503,7 +503,7 @@ if (is_array($_SESSION['compose']['attachments']))
($attachment['data'] ? false : true), ($attachment['data'] ? false : true),
($ctype == 'message/rfc822' ? '8bit' : 'base64'), ($ctype == 'message/rfc822' ? '8bit' : 'base64'),
($ctype == 'message/rfc822' ? 'inline' : 'attachment'), ($ctype == 'message/rfc822' ? 'inline' : 'attachment'),
$message_charset, '', '', '', '', '',
$CONFIG['mime_param_folding'] ? 'quoted-printable' : NULL, $CONFIG['mime_param_folding'] ? 'quoted-printable' : NULL,
$CONFIG['mime_param_folding'] == 2 ? 'quoted-printable' : NULL $CONFIG['mime_param_folding'] == 2 ? 'quoted-printable' : NULL
); );

Loading…
Cancel
Save