Refactor RegexInjectionQuery

This commit is contained in:
Ed Minnix
2023-03-20 17:21:38 -04:00
parent c44254e2e0
commit 7ee6c06f7f
3 changed files with 23 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ class RegexInjectionTest extends InlineExpectationsTest {
override predicate hasActualResult(Location location, string element, string tag, string value) {
tag = "hasRegexInjection" and
exists(DataFlow::PathNode sink, RegexInjectionConfiguration c | c.hasFlowPath(_, sink) |
exists(RegexInjectionFlow::PathNode sink | RegexInjectionFlow::hasFlowPath(_, sink) |
location = sink.getNode().getLocation() and
element = sink.getNode().toString() and
value = ""