summaryrefslogtreecommitdiff
path: root/program/steps/mail/get.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-30 11:13:43 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-30 11:13:43 +0100
commit8afbc8aeea10894bc97902912460cafd4681a42d (patch)
tree0305ea066ee0f39e35a563e57c4548357a5d7b6c /program/steps/mail/get.inc
parent7eb7806b211147b40c191d17a983ba34f26b8f1c (diff)
Fix attachment Content-Length for in-memory files (#1488844)
Diffstat (limited to 'program/steps/mail/get.inc')
-rw-r--r--program/steps/mail/get.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index 71a5e1b02..7b2f719c6 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -302,7 +302,7 @@ else if (strlen($pid = get_input_value('_part', RCUBE_INPUT_GET))) {
// send part as-it-is
else {
if ($part->body) {
- header("Content-Length: " . sizeof($part->body));
+ header("Content-Length: " . strlen($part->body));
echo $part->body;
$sent = true;
}