File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
ruby/ql/lib/codeql/ruby/frameworks/rack/internal Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ module App {
30
30
AppCandidate ( ) {
31
31
call = this .getInstanceMethod ( "call" ) and
32
32
call .getNumberOfParameters ( ) = 1 and
33
- call .getReturn ( ) = trackRackResponse ( resp )
33
+ call .getAReturningNode ( ) = trackRackResponse ( resp )
34
34
}
35
35
36
36
/**
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ module Private {
19
19
20
20
class PotentialResponseNode extends DataFlow:: ArrayLiteralNode {
21
21
// [status, headers, body]
22
- PotentialResponseNode ( ) { this .getNumberOfArguments ( ) = 3 }
22
+ PotentialResponseNode ( ) {
23
+ this .getNumberOfArguments ( ) = 3 and
24
+ this .asExpr ( ) .getExpr ( ) .getEnclosingModule + ( ) .getAMethod ( ) .getName ( ) = "call"
25
+ }
23
26
24
27
/**
25
28
* Gets an HTTP status code that may be returned in this response.
You can’t perform that action at this time.
0 commit comments