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 fb92d9b commit e459884Copy full SHA for e459884
javascript/ql/lib/semmle/javascript/ViewComponentInput.qll
@@ -3,7 +3,6 @@
3
*/
4
5
private import javascript
6
-private import semmle.javascript.internal.TypeResolution
7
8
/**
9
* An input to a view component, such as React props.
@@ -16,7 +15,7 @@ abstract class ViewComponentInput extends DataFlow::Node {
16
15
private class ViewComponentInputAsThreatModelSource extends ThreatModelSource::Range instanceof ViewComponentInput
17
{
18
ViewComponentInputAsThreatModelSource() {
19
- not TypeResolution::valueHasSanitizingPrimitiveType(this.asExpr())
+ not this.asExpr().getTypeBinding().isSanitizingPrimitiveType()
20
}
21
22
final override string getThreatModel() { result = "view-component-input" }
0 commit comments