mirror of
https://github.com/github/codeql.git
synced 2026-05-14 11:19:27 +02:00
Java: Fix reference in deprecated code.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user