summaryrefslogtreecommitdiff
path: root/ext/standard/html.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-10-21 01:46:54 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-10-21 01:46:54 +0000
commitbde1fe4d8140af77d7d91c863a1b425037de17d4 (patch)
treeb55a3585a6241790a2f4ff940eeacd999a4ad30f /ext/standard/html.c
parent06370c91321b3b26bbeba293fab0185dd1a47545 (diff)
downloadphp-git-bde1fe4d8140af77d7d91c863a1b425037de17d4.tar.gz
Missing '&' in the result of get_html_translation_table()
Diffstat (limited to 'ext/standard/html.c')
-rw-r--r--ext/standard/html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c
index 26ae951f2e..aa3246d303 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -1229,8 +1229,10 @@ PHP_FUNCTION(get_html_translation_table)
continue;
ind[0] = (unsigned char)basic_entities[j].charcode;
- add_assoc_string(return_value, ind, basic_entities[j].entity, 1);
+ add_assoc_stringl(return_value, ind, basic_entities[j].entity, basic_entities[j].entitylen, 1);
}
+ add_assoc_stringl(return_value, "&", "&amp;", sizeof("&amp;") - 1, 1);
+
break;
}
}