From: Scott MacVicar Date: Fri, 25 Jan 2008 18:11:19 +0000 (+0000) Subject: MFB: Fix html_entity_decode when converting numeric html entities, the numeric values... X-Git-Tag: RELEASE_2_0_0a1~778 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43c5d044d097d5f114b473e37414496639fceda7;p=php 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. --- diff --git a/ext/standard/html.c b/ext/standard/html.c index 313c349d08..7ddcd2daab 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -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: