Skip to content

Commit 2e80926

Browse files
committed
Ruby: fix a couple of references to deprecated names
1 parent 445241f commit 2e80926

File tree

1 file changed

+2
-2
lines changed
  • ruby/ql/lib/codeql/ruby/security

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/security/XSS.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private module Shared {
6262
*/
6363
class HtmlSafeCallAsSink extends Sink {
6464
HtmlSafeCallAsSink() {
65-
exists(HtmlSafeCall c, ErbOutputDirective d |
65+
exists(Rails::HtmlSafeCall c, ErbOutputDirective d |
6666
this.asExpr().getExpr() = c.getReceiver() and
6767
c = d.getTerminalStmt()
6868
)
@@ -160,7 +160,7 @@ private module Shared {
160160
*/
161161
pragma[noinline]
162162
private predicate renderCallLocals(string hashKey, Expr value, ErbFile erb) {
163-
exists(RenderCall call, Pair kvPair |
163+
exists(Rails::RenderCall call, Pair kvPair |
164164
call.getLocals().getAKeyValuePair() = kvPair and
165165
kvPair.getValue() = value and
166166
kvPair.getKey().getConstantValue().isStringlikeValue(hashKey) and

0 commit comments

Comments
 (0)