Add Content-Length for attachments where possible (#1485478)
| | |
| | | CHANGELOG Roundcube Webmail |
| | | =========================== |
| | | |
| | | - Add Content-Length for attachments where possible (#1485478) |
| | | - Fix attachment sizes in message print page and attachment preview page (#1488515) |
| | | - Fix XSS vulnerability in message subject handling using Larry skin (#1488519) |
| | | - Fix handling of links with various URI schemes e.g. "skype:" (#1488106) |
| | |
| | | $sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, false, $stdout); |
| | | } |
| | | } |
| | | // send part as-it-is |
| | | else { |
| | | // turn off output buffering and print part content |
| | | if ($part->body) { |
| | | header("Content-Length: " . sizeof($part->body)); |
| | | echo $part->body; |
| | | $sent = true; |
| | | } |
| | | else if ($part->size) { |
| | | if ($size = (int)$part->d_parameters['size']) { |
| | | header("Content-Length: $size"); |
| | | } |
| | | |
| | | $sent = $RCMAIL->storage->get_message_part($MESSAGE->uid, $part->mime_id, $part, true); |
| | | } |
| | | } |