diff options
author | alecpl <alec@alec.pl> | 2009-05-30 11:50:28 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-05-30 11:50:28 +0000 |
commit | 7ef05f4df1870155573f860ecb8e1399cb467afc (patch) | |
tree | a6cef7f33b342ce45454c65302b0668d6c4e0aa4 /program/steps | |
parent | 32ca1f9fc8a78e092565b51cc97faa724bb4e6cf (diff) |
- set content-length when saving message source
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/viewsource.inc | 3 |
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\""); } |