diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2005-10-16 12:17:47 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2005-10-16 12:17:47 +0000 |
commit | 488e2c04553410125845b5b470d94e2900508ac8 (patch) | |
tree | 82f0f8be87aba06ef02d240a9cc4cfbe0e545743 /www | |
parent | 019220c7121bf11a4dc42cfb3a9281e404039628 (diff) | |
download | pkgsrc-488e2c04553410125845b5b470d94e2900508ac8.tar.gz |
Fix bug in mbstring extension function mb_encode_mimeheader(), which
misinterpreted some Japanese characters as ASCII.
PR: 31223 by Takahiro Kambe
Diffstat (limited to 'www')
-rw-r--r-- | www/php4/distinfo | 3 | ||||
-rw-r--r-- | www/php4/patches/patch-an | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/www/php4/distinfo b/www/php4/distinfo index b57a12850a8..2c4ae6216d6 100644 --- a/www/php4/distinfo +++ b/www/php4/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.45 2005/10/07 21:09:27 jdolecek Exp $ +$NetBSD: distinfo,v 1.46 2005/10/16 12:17:47 jdolecek Exp $ SHA1 (php-4.4.0.tar.bz2) = 5e0afe6e5f8c751f880a50ad4fa1716f0242ef37 RMD160 (php-4.4.0.tar.bz2) = 4792e78b6f2f3e3347a1ac945b48efaccedf4542 @@ -16,3 +16,4 @@ SHA1 (patch-aj) = cc68ce876dc5998becbe2f1f74288b5da5bbaca3 SHA1 (patch-ak) = 1f9fbe26c7329e1d18eec053499ee2d574b5b970 SHA1 (patch-al) = 28ad9006b387e2b9984ad49beea21c9d46e63b46 SHA1 (patch-am) = 0de0be745262c1e986062c7a50261dbe58f97ac9 +SHA1 (patch-an) = dfe696f416ab5deffd38150441a65246a4816cf4 diff --git a/www/php4/patches/patch-an b/www/php4/patches/patch-an new file mode 100644 index 00000000000..e708f67cab6 --- /dev/null +++ b/www/php4/patches/patch-an @@ -0,0 +1,13 @@ +$NetBSD: patch-an,v 1.1 2005/10/16 12:17:47 jdolecek Exp $ + +--- ext/mbstring/libmbfl/mbfl/mbfilter.c.orig 2005-10-16 14:09:17.000000000 +0200 ++++ ext/mbstring/libmbfl/mbfl/mbfilter.c 2005-10-16 14:09:21.000000000 +0200 +@@ -1990,7 +1990,7 @@ + break; + + default: /* ASCII */ +- if (!qp_table[(c & 0xff)]) { /* ordinary characters */ ++ if (c >= 0 && c < 0x100 && !qp_table[(c & 0xff)]) { /* ordinary characters */ + mbfl_memory_device_output(c, &pe->tmpdev); + pe->status1 = 1; + } else if (pe->status1 == 0 && c == 0x20) { /* repeat SPACE */ |