summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-05 13:34:07 +0000
committeralecpl <alec@alec.pl>2009-06-05 13:34:07 +0000
commit8209f77d8e6e2fa787d615dae0fba8530eddac1f (patch)
tree56ca91b5ac971d3e3634411cbae3ddc03aec2d19 /program/steps
parent1691a8e91af06e249291747f81045dd2cd97cb5e (diff)
- decode message subject for 'save' action (#1485902)
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/viewsource.inc2
1 files changed, 1 insertions, 1 deletions
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)