wez Tue Sep 24 06:05:46 2002 EDT
Modified files:
/php4/ext/standard html.c
Log:
Fix for #19570: last character in translation table is omitted.
Index: php4/ext/standard/html.c
diff -u php4/ext/standard/html.c:1.50 php4/ext/standard/html.c:1.51
--- php4/ext/standard/html.c:1.50 Wed Aug 28 18:14:42 2002
+++ php4/ext/standard/html.c Tue Sep 24 06:05:45 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.50 2002/08/28 22:14:42 rasmus Exp $ */
+/* $Id: html.c,v 1.51 2002/09/24 10:05:45 wez Exp $ */
#include "php.h"
#include "reg.h"
@@ -835,7 +835,7 @@
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];
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php