From 763a92d7e0ea7427bfaa2cd8075c051f76d2a488 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Wed, 26 Nov 2008 02:43:43 +0000 Subject: [PATCH] MFB 5.2 --- ext/standard/html.c | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- 2.40.0