summaryrefslogtreecommitdiff
path: root/ext/mbstring/libmbfl
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2018-03-19 14:25:44 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2018-03-19 14:34:09 +0100
commitcd2912af5ead4174cb8e3e91a755e471fd7ec08a (patch)
treee79d1b258a0704aa35280c20cf2536fa6a8dd5e1 /ext/mbstring/libmbfl
parent13a33f7c7b59d98098e1e1b89a8da1c713eda897 (diff)
parent47461368ca4ea2d2c23482cbd655bd96b2acbfc8 (diff)
downloadphp-git-cd2912af5ead4174cb8e3e91a755e471fd7ec08a.tar.gz
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Fix #75944: Wrong cp1251 detection
Diffstat (limited to 'ext/mbstring/libmbfl')
-rw-r--r--ext/mbstring/libmbfl/filters/mbfilter_cp1251.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c b/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c
index a26ce19492..2d47ac304a 100644
--- a/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c
+++ b/ext/mbstring/libmbfl/filters/mbfilter_cp1251.c
@@ -142,7 +142,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 */