From d51c93b43e4b24b56e5c225154be4a60fcb418c6 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 01 Jun 2009 03:21:14 -0400
Subject: [PATCH] - get rid of some hardcoded action names and move decission about output compression to the user

---
 program/steps/mail/viewsource.inc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/viewsource.inc b/program/steps/mail/viewsource.inc
index 8790830..16d92c8 100644
--- a/program/steps/mail/viewsource.inc
+++ b/program/steps/mail/viewsource.inc
@@ -19,6 +19,7 @@
 
 */
 
+ob_end_clean();
 
 // similar code as in program/steps/mail/get.inc
 if ($uid = get_input_value('_uid', RCUBE_INPUT_GET))
@@ -37,7 +38,8 @@
       $filename = rawurlencode($filename);
     else
       $filename = addcslashes($filename, '"');
-      
+
+    header("Content-Length: {$headers->size}");
     header("Content-Disposition: attachment; filename=\"$filename\"");
   }
   

--
Gitblit v1.9.1