From 7ef05f4df1870155573f860ecb8e1399cb467afc Mon Sep 17 00:00:00 2001 From: alecpl Date: Sat, 30 May 2009 11:50:28 +0000 Subject: [PATCH] - set content-length when saving message source --- program/steps/mail/viewsource.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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\""); }