scottmac Fri Jan 25 18:11:19 2008 UTC
Modified files:
/php-src/ext/standard html.c
Log:
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.
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/html.c?r1=1.129&r2=1.130&diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.129 php-src/ext/standard/html.c:1.130
--- php-src/ext/standard/html.c:1.129 Mon Dec 31 07:12:15 2007
+++ php-src/ext/standard/html.c Fri Jan 25 18:11:19 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.129 2007/12/31 07:12:15 sebastian Exp $ */
+/* $Id: html.c,v 1.130 2008/01/25 18:11:19 scottmac Exp $ */
/*
* HTML entity resources:
@@ -1043,8 +1043,6 @@
break;
case cs_cp1252:
- case cs_cp1251:
- case cs_cp866:
if (code >
0xff) {
invalid_code = 1;
} else {
@@ -1052,6 +1050,8 @@
}
break;
+ case cs_cp1251:
+ case cs_cp866:
case cs_big5:
case cs_big5hkscs:
case cs_sjis:
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php