cvs: php-src /ext/standard html.c

From: Date: Wed, 26 Nov 2008 02:43:43 +0000
Subject: cvs: php-src /ext/standard html.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-54477@lists.php.net to get a copy of this message
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) {

« previous php.cvs (#54477) next »