We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66bd56f commit 92e0f02Copy full SHA for 92e0f02
ql/src/experimental/CWE-942/CorsMisconfiguration.ql
@@ -124,11 +124,7 @@ class FlowsFromUntrusted extends TaintTracking::Configuration {
124
exists(IfStmt ifs |
125
exists(Expr child, Expr operand |
126
child = ifs.getCond().getAChildExpr*() and
127
- (
128
- operand = child or
129
- operand = child.(LorExpr).getAnOperand() or
130
- operand = child.(LandExpr).getAnOperand()
131
- ) and
+ operand = child and
132
(
133
//
134
exists(DataFlow::CallExpr call | call = operand |
0 commit comments