]> granicus.if.org Git - php/commitdiff
MFB 5.2
authorArnaud Le Blanc <lbarnaud@php.net>
Wed, 26 Nov 2008 02:43:43 +0000 (02:43 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Wed, 26 Nov 2008 02:43:43 +0000 (02:43 +0000)
ext/standard/html.c

index 194c532a97a7e6ea0e30d7ee931311e4283cc746..8ea7d9af2ca423f5b44e0dfaac9b8b55d27a2b17 100644 (file)
@@ -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) {