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:
Scott MacVicar 2008-01-25 18:11:19 +00:00
parent ddc051cebe
commit 43c5d044d0

View File

@ -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: