We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f9635 commit 224db45Copy full SHA for 224db45
1 file changed
ruby/ql/lib/codeql/ruby/frameworks/Rack.qll
@@ -10,8 +10,6 @@ private import codeql.ruby.typetracking.TypeTracker
10
* Provides modeling for the Rack library.
11
*/
12
module Rack {
13
-
14
15
/**
16
* A class that may be a rack application.
17
* This is a class that has a `call` method that takes a single argument
@@ -34,11 +32,7 @@ module Rack {
34
32
35
33
private predicate isRackResponse(DataFlow::Node r) {
36
// [status, headers, body]
37
- exists(ArrayLiteralCfgNode arr | arr.getNumberOfArguments() = 3 |
38
- r.asExpr() = arr
39
- or
40
- exists(DataFlow::LocalSourceNode n | n.asExpr() = arr | n.flowsTo(r))
41
- )
+ r.asExpr().(ArrayLiteralCfgNode).getNumberOfArguments() = 3
42
}
43
44
private DataFlow::LocalSourceNode trackRackResponse(TypeTracker t) {
0 commit comments