File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ private import codeql.ruby.typetracking.TypeTracker
10
10
* Provides modeling for the Rack library.
11
11
*/
12
12
module Rack {
13
-
14
-
15
13
/**
16
14
* A class that may be a rack application.
17
15
* 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
34
// [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
- )
35
+ r .asExpr ( ) .( ArrayLiteralCfgNode ) .getNumberOfArguments ( ) = 3
42
36
}
43
37
44
38
private DataFlow:: LocalSourceNode trackRackResponse ( TypeTracker t ) {
You can’t perform that action at this time.
0 commit comments