Skip to content

Commit 53f24a5

Browse files
committed
fix QL-for-QL warning
1 parent 0817238 commit 53f24a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ruby/ql/lib/codeql/ruby/security/UnsafeCodeConstructionCustomizations.qll

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ module UnsafeCodeConstruction {
6262
*/
6363
class ArrayJoin extends Sink {
6464
Concepts::CodeExecution s;
65-
DataFlow::CallNode call;
6665

6766
ArrayJoin() {
68-
call.getMethodName() = "join" and
69-
call.getNumberOfArguments() = 1 and // any string. E.g. ";" or "\n".
70-
call = getANodeExecutedAsCode(s) and
71-
this = call.getReceiver()
67+
exists(DataFlow::CallNode call |
68+
call.getMethodName() = "join" and
69+
call.getNumberOfArguments() = 1 and // any string. E.g. ";" or "\n".
70+
call = getANodeExecutedAsCode(s) and
71+
this = call.getReceiver()
72+
)
7273
}
7374

7475
override DataFlow::Node getCodeSink() { result = s }

0 commit comments

Comments
 (0)