]> granicus.if.org Git - php/commitdiff
fixed bug 7961
authorAndre Langhorst <waldschrott@php.net>
Fri, 24 Nov 2000 16:17:58 +0000 (16:17 +0000)
committerAndre Langhorst <waldschrott@php.net>
Fri, 24 Nov 2000 16:17:58 +0000 (16:17 +0000)
ext/standard/html.c

index f36a7c9c48670287c64f16ad5d7653af61073ee4..ed895f251330392fe23d11025c1b893834f55e71 100644 (file)
@@ -183,8 +183,10 @@ PHP_FUNCTION(get_html_translation_table)
 
                case HTML_SPECIALCHARS:
                        ind[0]=38; add_assoc_string(return_value,ind,"&amp;",1);
-                       if(quote_style&ENT_QUOTES) ind[0]=39; add_assoc_string(return_value,ind,"&#039;",1);
-                       if(!(quote_style&ENT_NOQUOTES)) ind[0]=34; add_assoc_string(return_value,ind,"&quot;",1);
+                       if(quote_style&ENT_QUOTES) {
+                               ind[0]=39; add_assoc_string(return_value,ind,"&#039;",1); }
+                       if(!(quote_style&ENT_NOQUOTES)) {
+                               ind[0]=34; add_assoc_string(return_value,ind,"&quot;",1); }
                        ind[0]=60; add_assoc_string(return_value,ind,"&lt;",1);
                        ind[0]=62; add_assoc_string(return_value,ind,"&gt;",1);
                        break;