Skip to content

Commit 04a3a67

Browse files
committed
JS: Update a reference to AdditionalSanitizerGuardNode
Unlike most other references to this class, we're not subclassing it here, we're just trying to reuse some standard barrier guards but with a different flow state.
1 parent 834d35b commit 04a3a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Security/CWE-915/PrototypePollutingFunction.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ class AllowListInclusionGuard extends BarrierGuard {
465465
}
466466

467467
override predicate blocksExpr(boolean outcome, Expr e, DataFlow::FlowLabel lbl) {
468-
this.(TaintTracking::AdditionalSanitizerGuardNode).sanitizes(outcome, e) and
468+
this.(TaintTracking::AdditionalBarrierGuard).blocksExpr(outcome, e) and
469469
lbl instanceof UnsafePropLabel
470470
}
471471
}

0 commit comments

Comments
 (0)