lbarnaud                Wed Nov 26 02:43:43 2008 UTC

  Modified files:              
    /php-src/ext/standard       html.c 
  Log:
  MFB 5.2
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/html.c?r1=1.136&r2=1.137&diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.136 php-src/ext/standard/html.c:1.137
--- php-src/ext/standard/html.c:1.136   Tue Oct 21 22:06:48 2008
+++ php-src/ext/standard/html.c Wed Nov 26 02:43:43 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: html.c,v 1.136 2008/10/21 22:06:48 lbarnaud Exp $ */
+/* $Id: html.c,v 1.137 2008/11/26 02:43:43 lbarnaud Exp $ */
 
 /*
  * HTML entity resources:
@@ -533,6 +533,10 @@
                                do {
                                        if (this_char < 0x80) {
                                                more = 0;
+                                               if(stat) {
+                                                       /* we didn't finish the 
UTF sequence correctly */
+                                                       *status = FAILURE;
+                                               }
                                                break;
                                        } else if (this_char < 0xc0) {
                                                switch (stat) {



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

Reply via email to