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;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to