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

index cb40e82b42d8141ad87dac33d918d05413174478..7a2d9cd8c72fed01a56f5015e6abc2a923976243 100644 (file)
@@ -527,6 +527,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) {