]> granicus.if.org Git - php/commitdiff
MFB: Fix html_entity_decode when converting numeric html entities, the numeric values...
authorScott MacVicar <scottmac@php.net>
Fri, 25 Jan 2008 18:11:19 +0000 (18:11 +0000)
committerScott MacVicar <scottmac@php.net>
Fri, 25 Jan 2008 18:11:19 +0000 (18:11 +0000)
ext/standard/html.c

index 313c349d088c388cbdf3079b39b49cfe715b9222..7ddcd2daab8f2197c2b0667f42791d528d54b7f1 100644 (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: