]> granicus.if.org Git - php/commitdiff
Fix for #19570: last character in translation table is omitted.
authorWez Furlong <wez@php.net>
Tue, 24 Sep 2002 10:05:45 +0000 (10:05 +0000)
committerWez Furlong <wez@php.net>
Tue, 24 Sep 2002 10:05:45 +0000 (10:05 +0000)
ext/standard/html.c

index e0b237e1c375673e9d2e1a912d19a436892196d4..d40c0c836a1240c3b38f58d39eedae2618beabf1 100644 (file)
@@ -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];