From b4f95a9387a391054ad37c7cfc988ed66adc4b44 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 19 Apr 2012 02:38:59 -0400
Subject: [PATCH] - Fix attachment name regression (#1488446)
---
program/steps/mail/get.inc | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index 19be4bd..f698e38 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -151,11 +151,10 @@
$filename = rcube_label('htmlmessage');
}
else {
- $filename = ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube');
+ $ext = '.' . ($mimetype == 'text/plain' ? 'txt' : $ctype_secondary);
+ $filename = ($MESSAGE->subject ? $MESSAGE->subject : 'roundcube') . $ext;
}
- $ext = '.' . ($mimetype == 'text/plain' ? 'txt' : $ctype_secondary);
- $filename .= $ext;
$filename = preg_replace('[\r\n]', '', $filename);
if ($browser->ie && $browser->ver < 7)
--
Gitblit v1.9.1