]> granicus.if.org Git - php/commitdiff
warning: suggest parentheses around && within ||
authorXinchen Hui <laruence@php.net>
Fri, 25 Nov 2011 07:50:18 +0000 (07:50 +0000)
committerXinchen Hui <laruence@php.net>
Fri, 25 Nov 2011 07:50:18 +0000 (07:50 +0000)
ext/standard/html.c

index f543c3e8c79cc73c548941189f7aa44d07e4294f..3664e7d9a66ea05efa4f8ed1884cc212c4b97855 100644 (file)
@@ -1020,8 +1020,8 @@ PHPAPI char *php_unescape_html_entities(unsigned char *old, int oldlen, int *new
                                                code = strtol(p + 2, &next, 10);
                                        }
 
-                                       if (code == '\'' && !(quote_style & ENT_HTML_QUOTE_SINGLE) ||
-                                               code == '"' && !(quote_style & ENT_HTML_QUOTE_DOUBLE)) {
+                                       if ((code == '\'' && !(quote_style & ENT_HTML_QUOTE_SINGLE)) ||
+                                               (code == '"' && !(quote_style & ENT_HTML_QUOTE_DOUBLE))) {
                                                invalid_code = 1;
                                        }