cvs: php4 /ext/standard html.c
| From: | Wez Furlong | Date: | Fri, 24 Aug 2001 08:58:12 +0000 |
| Subject: | cvs: php4 /ext/standard html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7046@lists.php.net to get a copy of this message | ||
wez Fri Aug 24 04:58:12 2001 EDT
Modified files:
/php4/ext/standard html.c
Log:
Fix htmlspecialchars problem.
Index: php4/ext/standard/html.c
diff -u php4/ext/standard/html.c:1.33 php4/ext/standard/html.c:1.34
--- php4/ext/standard/html.c:1.33 Thu Aug 23 06:43:15 2001
+++ php4/ext/standard/html.c Fri Aug 24 04:58:10 2001
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.33 2001/08/23 10:43:15 wez Exp $ */
+/* $Id: html.c,v 1.34 2001/08/24 08:58:10 wez Exp $ */
#include "php.h"
#include "reg.h"
@@ -317,6 +317,7 @@
int i, maxlen, len;
char *new;
enum entity_charset charset = determine_charset(hint_charset);
+ int matches_map;
maxlen = 2 * oldlen;
if (maxlen < 128)
@@ -329,7 +330,8 @@
int mbseqlen;
unsigned char mbsequence[16]; /* allow up to 15 characters in a multibyte sequence */
unsigned short this_char = get_next_char(charset, old, &i, mbsequence, &mbseqlen);
- int matches_map;
+
+ matches_map = 0;
if (len + 9 > maxlen)
new = erealloc (new, maxlen += 128);
@@ -339,7 +341,6 @@
int j;
unsigned char * rep;
- matches_map = 0;
for (j=0; entity_map[j].charset != cs_terminator; j++) {
if (entity_map[j].charset == charset