cvs: php3 /functions html.c
| From: | Hartmut Holzgraefe | Date: | Tue, 25 Jul 2000 10:18:27 +0000 |
| Subject: | cvs: php3 /functions html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-910@lists.php.net to get a copy of this message | ||
hholzgra Tue Jul 25 03:18:27 2000 EDT
Modified files:
/php3/functions html.c
Log:
htmlspecialchars and htmlentities will now
encode single quotes to '
(due to feature request in BUG ID#5254)
Index: php3/functions/html.c
diff -u php3/functions/html.c:1.35 php3/functions/html.c:1.36
--- php3/functions/html.c:1.35 Mon Jan 31 16:18:44 2000
+++ php3/functions/html.c Tue Jul 25 03:18:27 2000
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.35 2000/02/01 00:18:44 martin Exp $ */
+/* $Id: html.c,v 1.36 2000/07/25 10:18:27 hholzgra Exp $ */
#include "php.h"
#include "internal_functions.h"
@@ -88,6 +88,10 @@
} else if ('"' == *old) {
memcpy (new + len, """, 6);
len += 6;
+ } else if (39 == *old) {
+ /* single quote (') */
+ memcpy (new + len, "'",6);
+ len += 6;
} else if ('<' == *old) {
memcpy (new + len, "<", 4);
len += 4;