summaryrefslogtreecommitdiff
path: root/program/steps/mail/viewsource.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-05-30 11:50:28 +0000
committeralecpl <alec@alec.pl>2009-05-30 11:50:28 +0000
commit7ef05f4df1870155573f860ecb8e1399cb467afc (patch)
treea6cef7f33b342ce45454c65302b0668d6c4e0aa4 /program/steps/mail/viewsource.inc
parent32ca1f9fc8a78e092565b51cc97faa724bb4e6cf (diff)
- set content-length when saving message source
Diffstat (limited to 'program/steps/mail/viewsource.inc')
-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\"");
}