File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
lib/codeql/ruby/frameworks/http_clients
test/library-tests/frameworks/http_clients Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,10 @@ class OpenUriRequest extends HTTP::Client::Request::Range {
19
19
20
20
OpenUriRequest ( ) {
21
21
requestNode =
22
- [ API:: getTopLevelMember ( "URI" ) , API:: getTopLevelMember ( "URI" ) .getReturn ( "parse" ) ]
23
- .getReturn ( "open" ) and
22
+ [
23
+ [ API:: getTopLevelMember ( "URI" ) , API:: getTopLevelMember ( "URI" ) .getReturn ( "parse" ) ]
24
+ .getReturn ( "open" ) , API:: getTopLevelMember ( "OpenURI" ) .getReturn ( "open_uri" )
25
+ ] and
24
26
requestUse = requestNode .getAnImmediateUse ( ) and
25
27
this = requestUse .asExpr ( ) .getExpr ( )
26
28
}
Original file line number Diff line number Diff line change 55
55
| OpenURI.rb:3:9:3:41 | call to open | OpenURI | OpenURI.rb:3:21:3:40 | "http://example.com" | OpenURI.rb:4:1:4:10 | call to read |
56
56
| OpenURI.rb:6:9:6:34 | call to open | OpenURI | OpenURI.rb:6:14:6:33 | "http://example.com" | OpenURI.rb:7:1:7:15 | call to readlines |
57
57
| OpenURI.rb:9:9:9:38 | call to open | OpenURI | OpenURI.rb:9:18:9:37 | "http://example.com" | OpenURI.rb:10:1:10:10 | call to read |
58
+ | OpenURI.rb:15:9:15:47 | call to open_uri | OpenURI | OpenURI.rb:15:26:15:46 | "https://example.com" | OpenURI.rb:16:1:16:10 | call to read |
58
59
| RestClient.rb:3:9:3:45 | call to get | RestClient | RestClient.rb:3:24:3:44 | "http://example.com/" | RestClient.rb:4:1:4:10 | call to body |
59
60
| RestClient.rb:6:9:6:59 | call to post | RestClient | RestClient.rb:6:25:6:44 | "http://example.com" | RestClient.rb:7:1:7:10 | call to body |
60
61
| RestClient.rb:9:9:9:58 | call to put | RestClient | RestClient.rb:9:24:9:43 | "http://example.com" | RestClient.rb:10:1:10:10 | call to body |
Original file line number Diff line number Diff line change 10
10
resp3 . read
11
11
12
12
resp4 = URI . parse ( "https://example.com" ) . open
13
- resp4 . read
13
+ resp4 . read
14
+
15
+ resp5 = OpenURI . open_uri ( "https://example.com" )
16
+ resp5 . read
You can’t perform that action at this time.
0 commit comments