cvs: php4(PHP_4_3) /ext/standard html.c

From: Date: Thu, 12 Dec 2002 13:27:17 +0000
Subject: cvs: php4(PHP_4_3) /ext/standard html.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-17161@lists.php.net to get a copy of this message
moriyoshi Thu Dec 12 08:27:17 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/standard html.c Log: MFH: Fixed bug #20934 (htmlspecialchars returns latin1 from UTF-8) Index: php4/ext/standard/html.c diff -u php4/ext/standard/html.c:1.63.2.2 php4/ext/standard/html.c:1.63.2.3 --- php4/ext/standard/html.c:1.63.2.2 Sat Nov 16 03:32:11 2002 +++ php4/ext/standard/html.c Thu Dec 12 08:27:17 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: html.c,v 1.63.2.2 2002/11/16 08:32:11 sebastian Exp $ */ +/* $Id: html.c,v 1.63.2.3 2002/12/12 13:27:17 moriyoshi Exp $ */ #include "php.h" #if PHP_WIN32 @@ -801,7 +801,7 @@ } if (!is_basic) { - if (this_char > 0xff) { + if (mbseqlen > 1) { /* a wide char without a named entity; pass through the original sequence */ memcpy(replaced + len, mbsequence, mbseqlen); len += mbseqlen;

« previous php.cvs (#17161) next »