Skip to content

Commit ca4dc05

Browse files
committed
Ruby: fix comment typos
1 parent 14de91c commit ca4dc05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ predicate isBackslashEscape(StringSubstitutionCall sub) {
6969
}
7070

7171
/**
72-
* Holds if data flowing into `nd` has no un-escaped backslashes.
72+
* Holds if data flowing into `node` has no un-escaped backslashes.
7373
*/
7474
predicate allBackslashesEscaped(DataFlow::Node node) {
7575
exists(StringSubstitutionCall sub | node = sub |
@@ -121,7 +121,7 @@ predicate removesFirstOccurence(StringSubstitutionCall sub, string str) {
121121
}
122122

123123
/**
124-
* Gets a method call where the receiver is the result of a string subtitution
124+
* Gets a method call where the receiver is the result of a string substitution
125125
* call.
126126
*/
127127
DataFlow::Node getAMethodCall(StringSubstitutionCall call) {
@@ -133,7 +133,7 @@ DataFlow::Node getAMethodCall(StringSubstitutionCall call) {
133133
not call.isDestructive() and call.(DataFlow::LocalSourceNode).flowsTo(receiver)
134134
or
135135
// for a destructive string substitution, is there flow from its
136-
// post-update receivver to the receiver of another method call?
136+
// post-update receiver to the receiver of another method call?
137137
call.isDestructive() and
138138
exists(DataFlowPrivate::PostUpdateNode post | post.getPreUpdateNode() = call.getReceiver() |
139139
post.(DataFlow::LocalSourceNode).flowsTo(receiver)
@@ -165,7 +165,7 @@ predicate isDelimiterUnwrapper(StringSubstitutionCall leftUnwrap, StringSubstitu
165165
}
166166

167167
/**
168-
* Holds if `sub` is a standalone use of a string subtitution to remove a single
168+
* Holds if `sub` is a standalone use of a string substitution to remove a single
169169
* newline, dollar or percent character.
170170
*
171171
* This is often done on inputs that are known to only contain a single instance

0 commit comments

Comments
 (0)