Skip to content

Commit 1ae4148

Browse files
committed
Ruby: Use new features in ActionMailbox model
1 parent f8ae530 commit 1ae4148

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ruby/ql/lib/codeql/ruby/frameworks/ActionMailbox.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ module ActionMailbox {
2727
Mail() {
2828
this =
2929
[
30-
controller().getAnInstanceSelf().getAMethodCall("inbound_email").getAMethodCall("mail"),
31-
controller().getAnInstanceSelf().getAMethodCall("mail")
30+
controller().trackInstance().getReturn("inbound_email").getAMethodCall("mail"),
31+
controller().trackInstance().getAMethodCall("mail")
3232
]
3333
}
3434
}
@@ -40,7 +40,7 @@ module ActionMailbox {
4040
RemoteContent() {
4141
this =
4242
any(Mail m)
43-
.(DataFlow::LocalSourceNode)
43+
.track()
4444
.getAMethodCall([
4545
"body", "to", "from", "raw_source", "subject", "from_address",
4646
"recipients_addresses", "cc_addresses", "bcc_addresses", "in_reply_to",

0 commit comments

Comments
 (0)