We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3679d0 commit 92359e5Copy full SHA for 92359e5
ruby/ql/lib/codeql/ruby/frameworks/actioncontroller/Filters.qll
@@ -402,13 +402,11 @@ module Filters {
402
* Holds if `n` is a post-update node for `self` in method `m`.
403
*/
404
private predicate selfPostUpdate(DataFlow::PostUpdateNode n, Method m) {
405
- m = n.getPreUpdateNode().asExpr().getExpr().getEnclosingCallable() and
406
- n.getPreUpdateNode()
407
- .asExpr()
408
- .(SelfVariableAccessCfgNode)
409
- .getExpr()
410
- .getVariable()
411
- .getDeclaringScope() = m
+ n.getPreUpdateNode().asExpr().getExpr() =
+ any(SelfVariableAccess self |
+ pragma[only_bind_into](m) = self.getEnclosingCallable() and
+ self.getVariable().getDeclaringScope() = m
+ )
412
}
413
414
/**
0 commit comments