From 8209f77d8e6e2fa787d615dae0fba8530eddac1f Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 5 Jun 2009 13:34:07 +0000 Subject: - decode message subject for 'save' action (#1485902) --- program/steps/mail/viewsource.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/steps/mail/viewsource.inc b/program/steps/mail/viewsource.inc index 16d92c859..a61385df8 100644 --- a/program/steps/mail/viewsource.inc +++ b/program/steps/mail/viewsource.inc @@ -29,7 +29,7 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_GET)) header("Content-Type: text/plain; charset={$charset}"); if (!empty($_GET['_save'])) { - $filename = ($headers->subject ? $headers->subject : 'roundcube') . '.eml'; + $filename = ($headers->subject ? $IMAP->decode_header($headers->subject) : 'roundcube') . '.eml'; $browser = new rcube_browser; if ($browser->ie && $browser->ver < 7) -- cgit v1.2.3