moriyoshi Mon Oct 20 21:46:55 2003 EDT
Modified files:
/php-src/ext/standard html.c
Log:
Missing '&' in the result of get_html_translation_table()
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.90 php-src/ext/standard/html.c:1.91
--- php-src/ext/standard/html.c:1.90 Thu Oct 2 15:23:00 2003
+++ php-src/ext/standard/html.c Mon Oct 20 21:46:54 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.90 2003/10/02 19:23:00 moriyoshi Exp $ */
+/* $Id: html.c,v 1.91 2003/10/21 01:46:54 moriyoshi Exp $ */
/*
* HTML entity resources:
@@ -1229,8 +1229,10 @@
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, "&", "&", sizeof("&")
- 1, 1);
+
break;
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php