summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-12-16 12:37:05 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-12-16 12:37:05 +0000
commitf817639e8c5e125712e8f4220be3e3083fa23b26 (patch)
treeaf8189ea24602cc12b6f4bd330e25a0b4de3cf6c /roundcubemail/program
parente487e20d86137500cfe11a2c6c1e1fbd04ad45fe (diff)
#1485607: fix charset setting for attachments when sending the message
git-svn-id: https://svn.roundcube.net/trunk@2154 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/lib/Mail/mimePart.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/Mail/mimePart.php b/roundcubemail/program/lib/Mail/mimePart.php
index ab7dda30f..7427a1002 100644
--- a/roundcubemail/program/lib/Mail/mimePart.php
+++ b/roundcubemail/program/lib/Mail/mimePart.php
@@ -185,6 +185,9 @@ class Mail_mimePart {
if (isset($contentType['type'])) {
$headers['Content-Type'] = $contentType['type'];
+ if (isset($contentType['charset'])) {
+ $headers['Content-Type'] .= "; charset=\"{$contentType['charset']}\"";
+ }
if (isset($contentType['name'])) {
$headers['Content-Type'] .= ';' . MAIL_MIMEPART_CRLF;
$headers['Content-Type'] .=
@@ -192,8 +195,6 @@ class Mail_mimePart {
isset($contentType['charset']) ? $contentType['charset'] : 'US-ASCII',
isset($contentType['language']) ? $contentType['language'] : NULL,
isset($params['name-encoding']) ? $params['name-encoding'] : NULL);
- } elseif (isset($contentType['charset'])) {
- $headers['Content-Type'] .= "; charset=\"{$contentType['charset']}\"";
}
}