Fixed bug: Only characters having odd numbers where encoded in
authorgustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 13 Mar 2001 15:19:56 +0000 (15:19 +0000)
committergustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 13 Mar 2001 15:19:56 +0000 (15:19 +0000)
encodeHeader. Introduced in CVS revision 1.76 of the file, which
refers to patch #10265, but I was unable to find this patch.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1193 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 0ebe0d95e59a47b149c7442a658ba3505fe0b872..c9623c0648dbc589379b93aac01c7de846f9274a 100644 (file)
 
       // Encode only if the string contains 8-bit characters or =?
       if (ereg("([\200-\377]|=\\?)", $string)) {
-         $newstring = "=?$default_charset?Q?";
          
          // First the special characters
          $string = str_replace("=", "=3D", $string);
            $replace = chr($ch);
            $insert = sprintf("=%02X", $ch);
             $string = str_replace($replace, $insert, $string);
-           $ch++;
          }
 
          $newstring = "=?$default_charset?Q?".$string."?=";