Browse Source

don't run decode cycles if charset is the same

tokul 20 years ago
parent
commit
83a8ecb3df
1 changed files with 4 additions and 1 deletions
  1. 4 1
      functions/decode/utf_8.php

+ 4 - 1
functions/decode/utf_8.php

@@ -27,7 +27,10 @@
  * @return string Decoded string
  */
 function charset_decode_utf_8 ($string) {
-  global $squirrelmail_language;
+    global $squirrelmail_language, $default_charset;
+
+    if (strtolower($default_charset) == 'utf-8')
+        return $string;
 
     if ($squirrelmail_language == 'ja_JP')
         return $string;