alecpl
2010-11-04 b8d8cbda4535f76c468364ebbdb81d856ed8322c
- Skip conversion when input charset is BINARY


1 files modified
5 ■■■■ changed files
program/include/main.inc 5 ●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -197,7 +197,7 @@
  static $mbstring_list = null;
  static $convert_warning = false;
  static $conv = null;
  $error = false;
  $to = empty($to) ? strtoupper(RCMAIL_CHARSET) : rcube_parse_charset($to);
@@ -341,6 +341,9 @@
    '/^X-/',            // X- prefix (e.g. X-ROMAN8 => ROMAN8)
    ), '', $charset);
  if ($charset == 'BINARY')
    return $charsets[$input] = null;
  # Aliases: some of them from HTML5 spec.
  $aliases = array(
    'USASCII'       => 'WINDOWS-1252',