[1.4.20RC2] case exact match in decodeheader
Takahiro Kambe <[email protected]>
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, my acquaintance find there is a case exact match in processing decoding encoded header. This problem still exists in 1.4.20RC2 and affects replying/forwarding a mail. Attached patch fix the problem. Case of "q|b" part has changed to the same as other regular expressions. Best regards. -- Takahiro Kambe <[email protected]> --- functions/i18n.php.orig 2009-07-29 11:21:06.000000000 +0900 +++ functions/i18n.php 2009-10-04 10:17:48.000000000 +0900 @@ -675,7 +675,7 @@ break; case 'decodeheader': $ret = str_replace("\t", "", $ret); - if (preg_match('/=\?([^?]+)\?(q|b)\?([^?]+)\?=/', $ret)) + if (preg_match('/=\?([^?]+)\?(Q|B)\?([^?]+)\?=/Ui', $ret)) $ret = @mb_decode_mimeheader($ret); $ret = @mb_convert_encoding($ret, 'EUC-JP', 'AUTO'); break; ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ----- squirrelmail-devel mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: [email protected] List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel