cvs: php-src /ext/standard html.c
| From: | Ilia Alshanetsky | Date: | Sat, 06 Mar 2004 18:35:41 +0000 |
| Subject: | cvs: php-src /ext/standard html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-26511@lists.php.net to get a copy of this message | ||
iliaa Sat Mar 6 13:35:41 2004 EDT
Modified files:
/php-src/ext/standard html.c
Log:
Fixed bug #27505 (htmlentities() does not handle BIG5 correctly).
http://cvs.php.net/diff.php/php-src/ext/standard/html.c?r1=1.94&r2=1.95&ty=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.94 php-src/ext/standard/html.c:1.95
--- php-src/ext/standard/html.c:1.94 Thu Jan 8 03:17:32 2004
+++ php-src/ext/standard/html.c Sat Mar 6 13:35:41 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.94 2004/01/08 08:17:32 andi Exp $ */
+/* $Id: html.c,v 1.95 2004/03/06 18:35:41 iliaa Exp $ */
/*
* HTML entity resources:
@@ -588,10 +588,10 @@
case cs_big5hkscs:
{
/* check if this is the first of a 2-byte sequence */
- if (this_char >= 0xa1 && this_char <= 0xf9) {
+ if (this_char >= 0xa1 && this_char <= 0xfe) {
/* peek at the next char */
unsigned char next_char = str[pos];
- if ((next_char >= 0x40 && next_char <= 0x73) ||
+ if ((next_char >= 0x40 && next_char <= 0x7e) ||
(next_char >= 0xa1 && next_char <= 0xfe)) {
/* yes, this a wide char */
this_char <<= 8;