From: Arnaud Le Blanc Date: Wed, 26 Nov 2008 02:43:43 +0000 (+0000) Subject: MFB 5.2 X-Git-Tag: BEFORE_HEAD_NS_CHANGES_MERGE~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=763a92d7e0ea7427bfaa2cd8075c051f76d2a488;p=php MFB 5.2 --- diff --git a/ext/standard/html.c b/ext/standard/html.c index 194c532a97..8ea7d9af2c 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -533,6 +533,10 @@ inline static unsigned short get_next_char(enum entity_charset charset, 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) {