diff options
author | alecpl <alec@alec.pl> | 2010-09-21 08:24:52 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-09-21 08:24:52 +0000 |
commit | 799359457f89646efa502a08e66cd9875a010178 (patch) | |
tree | b1c452dff2e44ab4f796ce358309250011b1d733 /program/steps/mail/viewsource.inc | |
parent | d560e78d98b291efd8db777e944bf57bb1b577e8 (diff) |
- Don't create a new rcube_browser object, use browser property from output object
Diffstat (limited to 'program/steps/mail/viewsource.inc')
-rw-r--r-- | program/steps/mail/viewsource.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/steps/mail/viewsource.inc b/program/steps/mail/viewsource.inc index a110238d9..9b6572677 100644 --- a/program/steps/mail/viewsource.inc +++ b/program/steps/mail/viewsource.inc @@ -30,8 +30,8 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_GET)) if (!empty($_GET['_save'])) { $filename = ($headers->subject ? $IMAP->decode_header($headers->subject) : 'roundcube') . '.eml'; - $browser = new rcube_browser; - + $browser = $RCMAIL->output->browser; + if ($browser->ie && $browser->ver < 7) $filename = rawurlencode(abbreviate_string($filename, 55)); else if ($browser->ie) @@ -42,7 +42,7 @@ if ($uid = get_input_value('_uid', RCUBE_INPUT_GET)) header("Content-Length: {$headers->size}"); header("Content-Disposition: attachment; filename=\"$filename\""); } - + $IMAP->print_raw_body($uid); } else |