mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Ruby: fix a couple of references to deprecated names
This commit is contained in:
@@ -62,7 +62,7 @@ private module Shared {
|
||||
*/
|
||||
class HtmlSafeCallAsSink extends Sink {
|
||||
HtmlSafeCallAsSink() {
|
||||
exists(HtmlSafeCall c, ErbOutputDirective d |
|
||||
exists(Rails::HtmlSafeCall c, ErbOutputDirective d |
|
||||
this.asExpr().getExpr() = c.getReceiver() and
|
||||
c = d.getTerminalStmt()
|
||||
)
|
||||
@@ -160,7 +160,7 @@ private module Shared {
|
||||
*/
|
||||
pragma[noinline]
|
||||
private predicate renderCallLocals(string hashKey, Expr value, ErbFile erb) {
|
||||
exists(RenderCall call, Pair kvPair |
|
||||
exists(Rails::RenderCall call, Pair kvPair |
|
||||
call.getLocals().getAKeyValuePair() = kvPair and
|
||||
kvPair.getValue() = value and
|
||||
kvPair.getKey().getConstantValue().isStringlikeValue(hashKey) and
|
||||
|
||||
Reference in New Issue
Block a user