Skip to content

Commit 9b2a983

Browse files
committed
Ruby: update use of PostUpdateNode now that it's public
1 parent 9b6e610 commit 9b2a983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/src/queries/security/cwe-116/IncompleteSanitization.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ predicate allBackslashesEscaped(DataFlow::Node node) {
104104
allBackslashesEscaped(node.getAPredecessor())
105105
or
106106
// general data flow from a (destructive) [g]sub!
107-
exists(DataFlowPrivate::PostUpdateNode post, StringSubstitutionCall sub |
107+
exists(DataFlow::PostUpdateNode post, StringSubstitutionCall sub |
108108
sub.isDestructive() and
109109
allBackslashesEscaped(sub) and
110110
post.getPreUpdateNode() = sub.getReceiver() and
@@ -135,7 +135,7 @@ DataFlow::CallNode getAMethodCall(StringSubstitutionCall call) {
135135
// for a destructive string substitution, is there flow from its
136136
// post-update receiver to the receiver of another method call?
137137
call.isDestructive() and
138-
exists(DataFlowPrivate::PostUpdateNode post | post.getPreUpdateNode() = call.getReceiver() |
138+
exists(DataFlow::PostUpdateNode post | post.getPreUpdateNode() = call.getReceiver() |
139139
post.(DataFlow::LocalSourceNode).flowsTo(receiver)
140140
)
141141
)

0 commit comments

Comments
 (0)