Skip to content

Commit df5eab3

Browse files
committed
JS: Update relevantTaintSource()
1 parent 02707f0 commit df5eab3

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

javascript/ql/src/meta/internal/TaintMetrics.qll

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,9 @@ DataFlow::Node relevantTaintSink(string kind) {
7575
DataFlow::Node relevantTaintSink() { result = relevantTaintSink(_) }
7676

7777
/**
78-
* Gets a remote flow source or `document.location` source.
78+
* Gets a relevant remote flow source.
7979
*/
80-
DataFlow::Node relevantTaintSource() {
81-
not result.getFile() instanceof IgnoredFile and
82-
(
83-
result instanceof RemoteFlowSource
84-
or
85-
result = DOM::locationSource()
86-
)
87-
}
80+
RemoteFlowSource relevantTaintSource() { not result.getFile() instanceof IgnoredFile }
8881

8982
/**
9083
* Gets the output of a call that shows intent to sanitize a value

0 commit comments

Comments
 (0)