cvs: php4 /ext/standard html.c
| From: | Andr� Langhorst | Date: | Fri, 24 Nov 2000 16:17:59 +0000 |
| Subject: | cvs: php4 /ext/standard html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2788@lists.php.net to get a copy of this message | ||
waldschrott Fri Nov 24 08:17:59 2000 EDT
Modified files:
/php4/ext/standard html.c
Log:
fixed bug 7961
Index: php4/ext/standard/html.c
diff -u php4/ext/standard/html.c:1.21 php4/ext/standard/html.c:1.22
--- php4/ext/standard/html.c:1.21 Tue Sep 12 10:24:46 2000
+++ php4/ext/standard/html.c Fri Nov 24 08:17:58 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.21 2000/09/12 17:24:46 rasmus Exp $ */
+/* $Id: html.c,v 1.22 2000/11/24 16:17:58 waldschrott Exp $ */
#include "php.h"
#include "reg.h"
@@ -183,8 +183,10 @@
case HTML_SPECIALCHARS:
ind[0]=38; add_assoc_string(return_value,ind,"&",1);
- if(quote_style&ENT_QUOTES) ind[0]=39;
add_assoc_string(return_value,ind,"'",1);
- if(!(quote_style&ENT_NOQUOTES)) ind[0]=34;
add_assoc_string(return_value,ind,""",1);
+ if(quote_style&ENT_QUOTES) {
+ ind[0]=39; add_assoc_string(return_value,ind,"'",1); }
+ if(!(quote_style&ENT_NOQUOTES)) {
+ ind[0]=34; add_assoc_string(return_value,ind,""",1); }
ind[0]=60; add_assoc_string(return_value,ind,"<",1);
ind[0]=62; add_assoc_string(return_value,ind,">",1);
break;