summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-03-06 18:35:41 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-03-06 18:35:41 +0000
commitbf6b0dc5e6a9adf20c3406d20eae75da9b1e5fe1 (patch)
tree4afef0265253d46f448d5d6962a08488a4cc2edc
parente57c749ecc97f55b96d845366fc68559c60eecd0 (diff)
downloadphp-git-bf6b0dc5e6a9adf20c3406d20eae75da9b1e5fe1.tar.gz
Fixed bug #27505 (htmlentities() does not handle BIG5 correctly).
-rw-r--r--ext/standard/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c
index 54c510e990..78db72ec78 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -588,10 +588,10 @@ inline static unsigned short get_next_char(enum entity_charset charset,
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;