mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
JS: fix copy pasta and test output
This commit is contained in:
@@ -65,5 +65,5 @@ private predicate hasHostnameSanitizingSubstring(DataFlow::Node nd) {
|
||||
predicate hostnameSanitizingPrefixEdge(DataFlow::Node source, DataFlow::Node sink) {
|
||||
exists (DataFlow::Node operator, int n |
|
||||
StringConcatenation::taintStep(source, sink, operator, n) and
|
||||
hasSanitizingSubstring(StringConcatenation::getOperand(operator, [0..n-1])))
|
||||
hasHostnameSanitizingSubstring(StringConcatenation::getOperand(operator, [0..n-1])))
|
||||
}
|
||||
Reference in New Issue
Block a user