Fix issue where Content-Length of some attachments could be set to wrong value causing browser errors (#1490482)

release-1.0
Aleksander Machniak 9 years ago
parent 4ec947715d
commit 969547784e

@ -13,6 +13,7 @@ CHANGELOG Roundcube Webmail
- Fix various issues with Turkish (and similar) locales (#1490519)
- Fix so In-Reply-To header is set also for MDN receipts (#1490523)
- Fix XSS issue in drag-n-drop file uploads (#1490530)
- Fix issue where Content-Length of some attachments could be set to wrong value causing browser errors (#1490482)
RELEASE 1.0.6
-------------

@ -363,9 +363,8 @@ else if (strlen($part_id)) {
$sent = true;
}
else if ($part->size) {
if ($size = (int)$part->d_parameters['size']) {
header("Content-Length: $size");
}
// Don't be tempted to set Content-Length to $part->d_parameters['size'] (#1490482)
// RFC2183 says "The size parameter indicates an approximate size"
// 8th argument disables re-formatting of text/* parts (#1489267)
$sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, true, null, false, 0, false);

Loading…
Cancel
Save