summaryrefslogtreecommitdiff
path: root/ext/standard/html.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2009-10-12 14:29:45 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2009-10-12 14:29:45 +0000
commit884cf3f1c045fb9b0c98ad011f4158cc8eabb72a (patch)
treeb360747011b77698d06a9f03e9df1f018fe8c813 /ext/standard/html.c
parented3e96197ded1fea0db5c09bfc6290a833af35c8 (diff)
downloadphp-git-884cf3f1c045fb9b0c98ad011f4158cc8eabb72a.tar.gz
- 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.
Diffstat (limited to 'ext/standard/html.c')
-rw-r--r--ext/standard/html.c2
1 files changed, 1 insertions, 1 deletions
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);
}