mirror of
https://github.com/github/codeql.git
synced 2026-03-27 17:58:17 +01:00
This member predicate gets dataflow nodes which contribute to the URL of the request. Also consolidate the identical tests for each HTTP client.
11 lines
281 B
Plaintext
11 lines
281 B
Plaintext
import codeql.ruby.Concepts
|
|
import codeql.ruby.DataFlow
|
|
|
|
query predicate httpRequests(
|
|
HTTP::Client::Request r, string framework, DataFlow::Node url, DataFlow::Node responseBody
|
|
) {
|
|
r.getFramework() = framework and
|
|
r.getURL() = url and
|
|
r.getResponseBody() = responseBody
|
|
}
|