File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1111import javascript
1212import meta.internal.TaintMetrics
1313
14- string getName ( DataFlow:: Node node ) {
15- result = node .( RemoteFlowSource ) .getSourceType ( )
16- or
17- not node instanceof RemoteFlowSource and
18- result = "Taint source"
19- }
20-
2114from DataFlow:: Node node
2215where node = relevantTaintSource ( )
23- select node , getName ( node )
16+ select node , getTaintSourceName ( node )
Original file line number Diff line number Diff line change @@ -100,3 +100,10 @@ DataFlow::Node relevantSanitizerInput() {
100100 result = any ( HtmlSanitizerCall call ) .getInput ( ) and
101101 not result .getFile ( ) instanceof IgnoredFile
102102}
103+
104+ string getTaintSourceName ( DataFlow:: Node node ) {
105+ result = node .( RemoteFlowSource ) .getSourceType ( )
106+ or
107+ not node instanceof RemoteFlowSource and
108+ result = "Taint source"
109+ }
You can’t perform that action at this time.
0 commit comments