]> granicus.if.org Git - php/commitdiff
- Bug #49785: take 4 - typo. this flaw is unharmful since the return value of get_nex...
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 12 Oct 2009 14:29:45 +0000 (14:29 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 12 Oct 2009 14:29:45 +0000 (14:29 +0000)
ext/standard/html.c

index 7932194cb8d2f593137e8db07bbc28f35c3de1fb..5a4a0abb1686412693583ef1ecd4ca77f8211036 100644 (file)
@@ -688,7 +688,7 @@ inline static unsigned int get_next_char(enum entity_charset charset,
                                                MB_WRITE(this_char);
                                                MB_WRITE(next_char);
                                                MB_WRITE(next2_char);
-                                               this_char = (this_char << 16) | (next_char << 8) | next_char;
+                                               this_char = (this_char << 16) | (next_char << 8) | next2_char;
                                        } else {
                                                MB_FAILURE(pos);
                                        }