Refactor TemplateInjection

This commit is contained in:
Ed Minnix
2023-03-21 18:09:12 -04:00
parent 7e1c42442a
commit 787b73317d
3 changed files with 42 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ class TemplateInjectionTest extends InlineExpectationsTest {
override predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasTemplateInjection" and
exists(DataFlow::Node sink, TemplateInjectionFlowConfig conf | conf.hasFlowTo(sink) |
exists(DataFlow::Node sink | TemplateInjectionFlow::hasFlowTo(sink) |
sink.getLocation() = location and
element = sink.toString() and
value = ""