summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}