Skip to content

Commit 12c53ba

Browse files
committed
Simplify the query
1 parent ce03aeb commit 12c53ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/ql/src/experimental/Security/CWE/CWE-073/PathSanitizer.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ abstract class SanitizedNode extends DataFlow::Node { }
179179

180180
class NodeWithPathNormalizer extends SanitizedNode {
181181
NodeWithPathNormalizer() {
182-
exists(MethodAccess ma |
183-
DataFlow::localExprFlow(this.asExpr(), ma) and ma instanceof PathNormalizeSanitizer
184-
)
182+
DataFlow::localExprFlow(this.asExpr(), any(PathNormalizeSanitizer ma))
185183
}
186184
}
187185

0 commit comments

Comments
 (0)