From: Moriyoshi Koizumi Date: Mon, 12 Oct 2009 14:29:45 +0000 (+0000) Subject: - Bug #49785: take 4 - typo. this flaw is unharmful since the return value of get_nex... X-Git-Tag: php-5.3.2RC1~370 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=884cf3f1c045fb9b0c98ad011f4158cc8eabb72a;p=php - Bug #49785: take 4 - typo. this flaw is unharmful since the return value of get_next_char() is only used when UTF-8 is specified to the third argument. --- diff --git a/ext/standard/html.c b/ext/standard/html.c index 7932194cb8..5a4a0abb16 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -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); }