]> granicus.if.org Git - php/commitdiff
MFH: fixed garbled multibyte characters.
authorRui Hirokawa <hirokawa@php.net>
Sat, 5 Nov 2005 04:48:25 +0000 (04:48 +0000)
committerRui Hirokawa <hirokawa@php.net>
Sat, 5 Nov 2005 04:48:25 +0000 (04:48 +0000)
ext/mbstring/libmbfl/mbfl/mbfilter.c

index b99d8df8a2b5cf8d2023892a869e58142767775e..0e7072fda72e7fbd6a60ee080ee6e06fa7485729 100644 (file)
@@ -1990,7 +1990,7 @@ mime_header_encoder_collector(int c, void *data)
                break;
 
        default:        /* ASCII */
-               if (!qp_table[(c & 0xff)]) { /* ordinary characters */
+               if (c <= 0x00ff && !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 */