summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/viewsource.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/viewsource.inc b/program/steps/mail/viewsource.inc
index 87908303d..56a8ddec8 100644
--- a/program/steps/mail/viewsource.inc
+++ b/program/steps/mail/viewsource.inc
@@ -37,7 +37,8 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_GET))
$filename = rawurlencode($filename);
else
$filename = addcslashes($filename, '"');
-
+
+ header("Content-Length: {$headers->size}");
header("Content-Disposition: attachment; filename=\"$filename\"");
}