File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
ruby/ql/lib/codeql/ruby/frameworks/core Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,16 @@ class StringSubstitutionCall extends DataFlow::CallNode {
54
54
* Gets the string value passed as the first (pattern) argument in this call,
55
55
* if any.
56
56
*/
57
- string getPatternString ( ) { result = this .getArgument ( 0 ) .asExpr ( ) .getConstantValue ( ) .getString ( ) }
57
+ string getPatternString ( ) {
58
+ result = this .getPatternArgument ( ) .asExpr ( ) .getConstantValue ( ) .getString ( )
59
+ }
58
60
59
61
/**
60
62
* Gets the string value passed as the second (replacement) argument in this
61
63
* call, if any.
62
64
*/
63
65
string getReplacementString ( ) {
64
- result = this .getArgument ( 1 ) .asExpr ( ) .getConstantValue ( ) .getString ( )
66
+ result = this .getReplacementArgument ( ) .asExpr ( ) .getConstantValue ( ) .getString ( )
65
67
}
66
68
67
69
/** Gets a string that is being replaced by this call. */
You can’t perform that action at this time.
0 commit comments