cvs: php4 /ext/standard html.c

From: Date: Wed, 30 Aug 2000 15:27:24 +0000
Subject: cvs: php4 /ext/standard html.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1453@lists.php.net to get a copy of this message
cmv Wed Aug 30 08:27:24 2000 EDT Modified files: /php4/ext/standard html.c Log: Remove single quote from HTMLSpecialChars() ... use addslashes(), htmlentities(), strtr() instead. Index: php4/ext/standard/html.c diff -u php4/ext/standard/html.c:1.18 php4/ext/standard/html.c:1.19 --- php4/ext/standard/html.c:1.18 Tue Jul 25 03:18:06 2000 +++ php4/ext/standard/html.c Wed Aug 30 08:27:23 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: html.c,v 1.18 2000/07/25 10:18:06 hholzgra Exp $ */ +/* $Id: html.c,v 1.19 2000/08/30 15:27:23 cmv Exp $ */ #include "php.h" #include "reg.h" @@ -66,10 +66,6 @@ } else if (34 == *old) { memcpy (new + len, """, 6); len += 6; - } else if (39 == *old) { - /* single quote (') */ - memcpy (new + len, "'",6); - len += 6; } else if (60 == *old) { memcpy (new + len, "<", 4); len += 4;

« previous php.cvs (#1453) next »