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 11
11
import javascript
12
12
import meta.internal.TaintMetrics
13
13
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
-
21
14
from DataFlow:: Node node
22
15
where 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() {
100
100
result = any ( HtmlSanitizerCall call ) .getInput ( ) and
101
101
not result .getFile ( ) instanceof IgnoredFile
102
102
}
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