Skip to content

Commit 92e0f02

Browse files
committed
Remove special cases inside if
1 parent 66bd56f commit 92e0f02

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ql/src/experimental/CWE-942/CorsMisconfiguration.ql

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,7 @@ class FlowsFromUntrusted extends TaintTracking::Configuration {
124124
exists(IfStmt ifs |
125125
exists(Expr child, Expr operand |
126126
child = ifs.getCond().getAChildExpr*() and
127-
(
128-
operand = child or
129-
operand = child.(LorExpr).getAnOperand() or
130-
operand = child.(LandExpr).getAnOperand()
131-
) and
127+
operand = child and
132128
(
133129
//
134130
exists(DataFlow::CallExpr call | call = operand |

0 commit comments

Comments
 (0)