diff options
author | jdolecek <jdolecek> | 2005-10-16 12:17:47 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2005-10-16 12:17:47 +0000 |
commit | e4126b514dc3299127e62a57361d729d84f63636 (patch) | |
tree | 82f0f8be87aba06ef02d240a9cc4cfbe0e545743 /lang/php5/patches | |
parent | 380fc5b7d04e8dc245d98ef5e8768ef1b2a655ae (diff) | |
download | pkgsrc-e4126b514dc3299127e62a57361d729d84f63636.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 'lang/php5/patches')
-rw-r--r-- | lang/php5/patches/patch-an | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/php5/patches/patch-an b/lang/php5/patches/patch-an new file mode 100644 index 00000000000..e708f67cab6 --- /dev/null +++ b/lang/php5/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 */ |