mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
JS: Update relevantTaintSource()
This commit is contained in:
@@ -75,16 +75,9 @@ DataFlow::Node relevantTaintSink(string kind) {
|
||||
DataFlow::Node relevantTaintSink() { result = relevantTaintSink(_) }
|
||||
|
||||
/**
|
||||
* Gets a remote flow source or `document.location` source.
|
||||
* Gets a relevant remote flow source.
|
||||
*/
|
||||
DataFlow::Node relevantTaintSource() {
|
||||
not result.getFile() instanceof IgnoredFile and
|
||||
(
|
||||
result instanceof RemoteFlowSource
|
||||
or
|
||||
result = DOM::locationSource()
|
||||
)
|
||||
}
|
||||
RemoteFlowSource relevantTaintSource() { not result.getFile() instanceof IgnoredFile }
|
||||
|
||||
/**
|
||||
* Gets the output of a call that shows intent to sanitize a value
|
||||
|
||||
Reference in New Issue
Block a user