From a12423f959c4e6194ebda4ea024610daa2eba2b8 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 24 Sep 2002 10:05:45 +0000 Subject: [PATCH] Fix for #19570: last character in translation table is omitted. --- ext/standard/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/html.c b/ext/standard/html.c index e0b237e1c3..d40c0c836a 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -835,7 +835,7 @@ PHP_FUNCTION(get_html_translation_table) for (j=0; entity_map[j].charset != cs_terminator; j++) { if (entity_map[j].charset != charset) continue; - for (i = 0; i < entity_map[j].endchar - entity_map[j].basechar; i++) + for (i = 0; i <= entity_map[j].endchar - entity_map[j].basechar; i++) { char buffer[16]; -- 2.50.1