Skip to content

Commit 25065bc

Browse files
author
luciaromeroML
committed
simplifying sentence
1 parent 0b0ac83 commit 25065bc

File tree

1 file changed

+1
-4
lines changed
  • javascript/ql/src/experimental/Security/CWE-918

1 file changed

+1
-4
lines changed

javascript/ql/src/experimental/Security/CWE-918/SSRF.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ class TernaryOperatorSanitizerGuard extends TaintTracking::SanitizerGuardNode {
3030
TaintTracking::SanitizerGuardNode originalGuard;
3131

3232
TernaryOperatorSanitizerGuard() {
33-
exists(DataFlow::Node falseNode |
34-
this.getAPredecessor+() = falseNode and
35-
falseNode.asExpr().(BooleanLiteral).mayHaveBooleanValue(false)
36-
) and
33+
this.getAPredecessor+().asExpr().(BooleanLiteral).mayHaveBooleanValue(false) and
3734
this.getAPredecessor+() = originalGuard and
3835
not this.asExpr() instanceof LogicalBinaryExpr
3936
}

0 commit comments

Comments
 (0)