mirror of
https://github.com/php/php-src.git
synced 2024-09-24 11:27:28 +00:00
MFB: Fix html_entity_decode when converting numeric html entities, the numeric values for the extended character set don't correspond to that of windows-1251 and cp866.
This commit is contained in:
parent
ddc051cebe
commit
43c5d044d0
@ -1043,8 +1043,6 @@ PHPAPI char *php_unescape_html_entities(char *orig, int oldlen, int *newlen, int
|
||||
break;
|
||||
|
||||
case cs_cp1252:
|
||||
case cs_cp1251:
|
||||
case cs_cp866:
|
||||
if (code > 0xff) {
|
||||
invalid_code = 1;
|
||||
} else {
|
||||
@ -1052,6 +1050,8 @@ PHPAPI char *php_unescape_html_entities(char *orig, int oldlen, int *newlen, int
|
||||
}
|
||||
break;
|
||||
|
||||
case cs_cp1251:
|
||||
case cs_cp866:
|
||||
case cs_big5:
|
||||
case cs_big5hkscs:
|
||||
case cs_sjis:
|
||||
|
Loading…
Reference in New Issue
Block a user