Swift: Apply another code review suggestion.

This commit is contained in:
Geoffrey White
2022-08-03 18:16:01 +01:00
parent e4dab17318
commit 873c62ef78

View File

@@ -137,7 +137,7 @@ where
message = "Tainted data is used in a WebView fetch without restricting the base URL."
or
// base URL is tainted
config.hasFlow(_, any(DataFlow::Node n | n.asExpr() = sink.getBaseUrl())) and
config.hasFlowToExpr(sink.getBaseUrl()) and
message = "Tainted data is used in a WebView fetch with a tainted base URL."
)
select sink, sourceNode, sinkNode, message