Happy New Year
[squirrelmail.git] / functions / decode / koi8_u.php
index 06c11b0cba468735b85114c54a6a663a34f279f7..b009dbf47c825c54da00036b373a43c1ee8598e1 100644 (file)
@@ -1,13 +1,11 @@
 <?php
+
 /**
  * decode/koi8-u.php
  *
- * Copyright (c) 2003-2004 The SquirrelMail Project Team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
  * This file contains koi8-u decoding function that is needed to read
  * koi8-u encoded mails in non-koi8-u locale.
- * 
+ *
  * Original data taken from rfc2319
  *
  * Original copyright:
@@ -38,6 +36,8 @@
  * HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  *
+ * @copyright 2003-2018 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
  * @subpackage decode
  * @return string Decoded string
  */
 function charset_decode_koi8_u ($string) {
-    global $default_charset;
-
-    if (strtolower($default_charset) == 'koi8-u')
-        return $string;
-
     // don't do decoding when there are no 8bit symbols
     if (! sq_is8bit($string,'koi8-u'))
         return $string;
@@ -193,4 +188,3 @@ function charset_decode_koi8_u ($string) {
 
     return $string;
 }
-?>
\ No newline at end of file