JS: fix copy pasta and test output

This commit is contained in:
Asger F
2018-11-12 13:03:13 +00:00
parent dd5f485fff
commit c06c9a02f7

View File

@@ -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])))
}