summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/steps/mail/get.inc2
-rw-r--r--program/steps/mail/viewsource.inc6
2 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index 5e4414059..07af7559d 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -79,7 +79,7 @@ else if ($pid = get_input_value('_part', RCUBE_INPUT_GET)) {
$ctype_secondary = strtolower($part->ctype_secondary);
$mimetype = sprintf('%s/%s', $ctype_primary, $ctype_secondary);
- $browser = new rcube_browser;
+ $browser = $RCMAIL->output->browser;
// send download headers
if ($_GET['_download']) {
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