Skip to content

Commit 3eb7675

Browse files
committed
rename to DenyListInclusionGuard
1 parent 9824311 commit 3eb7675

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/PrototypePollutingAssignmentQuery.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,10 @@ private class IncludesCheck extends TaintTracking::LabeledSanitizerGuardNode, In
277277
}
278278

279279
/**
280-
* A sanitizer guard that checks tests whether `x` is included in a list of strings.
280+
* A sanitizer guard that checks tests whether `x` is included in a list like `["__proto__"].includes(x)`.
281281
*/
282-
private class StringListCheck extends TaintTracking::SanitizerGuardNode, InclusionTest {
283-
StringListCheck() {
282+
private class DenyListInclusionGuard extends TaintTracking::SanitizerGuardNode, InclusionTest {
283+
DenyListInclusionGuard() {
284284
this.getContainerNode()
285285
.getALocalSource()
286286
.(DataFlow::ArrayCreationNode)

0 commit comments

Comments
 (0)