summaryrefslogtreecommitdiff
path: root/program/include/rcube_mime.php
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2012-01-27 10:34:19 +0000
committerthomascube <thomas@roundcube.net>2012-01-27 10:34:19 +0000
commit77c779a2b807cdde0641267f272517738157edf4 (patch)
treed1d1629566d8db71375d4ecded6dded46de46d89 /program/include/rcube_mime.php
parentf62b310e97f21514052720d64ddecd9dce164597 (diff)
Update requirements list, remove TODO
Diffstat (limited to 'program/include/rcube_mime.php')
-rw-r--r--program/include/rcube_mime.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_mime.php b/program/include/rcube_mime.php
index bc0b2aa8c..538c8ea45 100644
--- a/program/include/rcube_mime.php
+++ b/program/include/rcube_mime.php
@@ -94,13 +94,13 @@ class rcube_mime
$part_charset = $struct->charset ? $struct->charset : self::$default_charset;
- // TODO: determine filename
+ // determine filename
if (($filename = $part->d_parameters['filename']) || ($filename = $part->ctype_parameters['name'])) {
$struct->filename = rcube_mime::decode_mime_string($filename, $part_charset);
}
// copy part body and convert it to UTF-8 if necessary
- $struct->body = $part->ctype_primary == 'text' ? rcube_charset::convert($part->body, $part_charset) : $part->body;
+ $struct->body = $part->ctype_primary == 'text' || !$part->ctype_parameters['charset'] ? rcube_charset::convert($part->body, $part_charset) : $part->body;
$struct->size = strlen($part->body);
$struct->disposition = $part->disposition;