File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
ruby/ql/lib/codeql/ruby/frameworks/rack/internal Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ private class CallNode extends PotentialCallNode {
40
40
41
41
CallNode ( ) { resp = trackRackResponse ( this ) }
42
42
43
- /** Gets the response returned from a request to this application. */
44
- RP:: PotentialResponseNode getResponse ( ) { result = resp }
43
+ /** Gets a response returned from a request to this application. */
44
+ RP:: PotentialResponseNode getAResponse ( ) { result = resp }
45
45
}
46
46
47
47
private DataFlow:: LocalSourceNode trackRackResponse ( TypeBackTracker t , PotentialCallNode call ) {
@@ -82,7 +82,7 @@ module App {
82
82
83
83
/** Gets the response returned from a request to this application. */
84
84
RP:: PotentialResponseNode getResponse ( ) { result = resp }
85
- }
85
+ }
86
86
87
87
private newtype TApp =
88
88
TClassApp ( DataFlow:: ClassNode cn , CallNode call ) or
@@ -100,8 +100,8 @@ module App {
100
100
/** Gets the `DataFlow::CallableNode` that will handle requests to this app. */
101
101
abstract CallNode getCall ( ) ;
102
102
103
- /** Gets the response returned from a request to this app. */
104
- RP:: PotentialResponseNode getResponse ( ) { result = this .getCall ( ) .getResponse ( ) }
103
+ /** Gets a response returned from a request to this app. */
104
+ RP:: PotentialResponseNode getAResponse ( ) { result = this .getCall ( ) .getAResponse ( ) }
105
105
106
106
/** Gets the `env` parameter passed to this app when it handles a request. */
107
107
DataFlow:: ParameterNode getEnv ( ) { result = this .getCall ( ) .getParameter ( 0 ) }
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ module Public {
91
91
/** A `DataFlow::Node` returned from a rack request. */
92
92
class ResponseNode extends Http:: Server:: HttpResponse:: Range instanceof Private:: PotentialResponseNode
93
93
{
94
- ResponseNode ( ) { this = any ( A:: App:: App app ) .getResponse ( ) }
94
+ ResponseNode ( ) { this = any ( A:: App:: App app ) .getAResponse ( ) }
95
95
96
96
override DataFlow:: Node getBody ( ) { result = this .( Private:: PotentialResponseNode ) .getBody ( ) }
97
97
You can’t perform that action at this time.
0 commit comments