diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-09-12 11:16:00 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-09-12 11:18:55 +0200 |
commit | 295efea5c114378f9c5509659badb18ff16b0642 (patch) | |
tree | 25c18bee19298c90af1e4c68a7048f06a6c591b2 /program | |
parent | a98f79532de302e01b4133289b21f920baefa223 (diff) |
Don't use charset aliases for destination charset - fixes e.g.
converting to US-ASCII
Conflicts:
program/include/rcube_charset.php
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_charset.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/rcube_charset.php b/program/include/rcube_charset.php index fc1685d28..2c8d3a0dd 100644 --- a/program/include/rcube_charset.php +++ b/program/include/rcube_charset.php @@ -89,7 +89,7 @@ class rcube_charset * Sometimes charset string is malformed, there are also charset aliases * but we need strict names for charset conversion (specially utf8 class) * - * @param string Input charset name + * @param string $input Input charset name * * @return string The validated charset name */ @@ -182,7 +182,7 @@ class rcube_charset static $mbstring_list = null; static $conv = null; - $to = empty($to) ? strtoupper(RCMAIL_CHARSET) : self::parse($to); + $to = empty($to) ? strtoupper(RCMAIL_CHARSET) : $to; $from = self::parse($from); // It is a common case when UTF-16 charset is used with US-ASCII content (#1488654) |