File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ module Rack {
9
9
import rack.internal.App
10
10
import rack.internal.Request
11
11
import rack.internal.Response:: Public as Response
12
+ import rack.internal.Utils
12
13
13
14
/** DEPRECATED: Alias for App::AppCandidate */
14
15
deprecated class AppCandidate = App:: AppCandidate ;
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Provides modeling for the `Utils` component of the `Rack` library.
3
+ */
4
+
5
+ private import codeql.ruby.ApiGraphs
6
+ private import codeql.ruby.dataflow.FlowSummary
7
+
8
+ /**
9
+ * Provides modeling for the `Utils` component of the `Rack` library.
10
+ */
11
+ module Utils {
12
+ /** Flow summary for `Rack::Utils.parse_query`, which parses a query string. */
13
+ private class ParseQuerySummary extends SummarizedCallable {
14
+ ParseQuerySummary ( ) { this = "Rack::Utils.parse_query" }
15
+
16
+ override MethodCall getACall ( ) {
17
+ result = API:: getTopLevelMember ( "Rack" ) .getMember ( "Utils" ) .getAMethodCall ( "parse_query" ) .asExpr ( ) .getExpr ( )
18
+ }
19
+
20
+ override predicate propagatesFlowExt ( string input , string output , boolean preservesValue ) {
21
+ input = "Argument[0]" and output = "ReturnValue" and preservesValue = false
22
+ }
23
+ }
24
+ }
You can’t perform that action at this time.
0 commit comments