Java: Fix reference in deprecated code.

This commit is contained in:
Anders Schack-Mulligen
2026-05-04 10:34:23 +02:00
parent 17fded4aa5
commit c7904b12c8

View File

@@ -43,7 +43,7 @@ deprecated private predicate mayBeExploitable(Method m) {
// hence, here we check for the param type to be a Java `String`.
p.getType() instanceof TypeString and
// Exclude cases where a regex check is applied on a parameter to prevent false positives.
not m.(SpringRequestMappingMethod).getValue().matches("%{%:[%]%}%")
not m.(SpringRequestMappingMethod).getAValue().matches("%{%:[%]%}%")
) and
not maybeATestMethod(m)
}