Thomas Bruederli
2012-10-15 9546d22c67fda4cbc4a9141dca11944e885ce8a7
Avoid unnecessary strtoupper() calls but validate target charset if specified
1 files modified
2 ■■■ changed files
program/include/rcube_charset.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_charset.php
@@ -179,7 +179,7 @@
        static $mbstring_sch    = null;
        static $conv            = null;
        $to   = empty($to) ? strtoupper(RCMAIL_CHARSET) : $to;
        $to   = empty($to) ? RCMAIL_CHARSET : self::parse_charset($to);
        $from = self::parse_charset($from);
        // It is a common case when UTF-16 charset is used with US-ASCII content (#1488654)