Patch mbstring_cp1251_0xff_return for mbstring related Bug #75944
Patch version 2018-02-09 18:48 UTC
Return to Bug #75944 |
Download this patch
Patch Revisions:
Developer: dmk001@inbox.ru
diff --git a/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c b/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c
index 532806f..e28da31 100644
--- a/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c
+++ b/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c
@@ -144,7 +144,7 @@ mbfl_filt_conv_wchar_cp1251(int c, mbfl_convert_filter *filter)
/* all of this is so ugly now! */
static int mbfl_filt_ident_cp1251(int c, mbfl_identify_filter *filter)
{
- if (c >= 0x80 && c < 0xff)
+ if (c >= 0x80 && c <= 0xff)
filter->flag = 0;
else
filter->flag = 1; /* not it */
|