Skip to content

Commit e82565f

Browse files
committed
Java: Fix reference in deprecated code.
1 parent 44cc514 commit e82565f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/ql/src/experimental/Security/CWE/CWE-094/SpringImplicitViewManipulation.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ deprecated private predicate mayBeExploitable(Method m) {
4343
// hence, here we check for the param type to be a Java `String`.
4444
p.getType() instanceof TypeString and
4545
// Exclude cases where a regex check is applied on a parameter to prevent false positives.
46-
not m.(SpringRequestMappingMethod).getValue().matches("%{%:[%]%}%")
46+
not m.(SpringRequestMappingMethod).getAValue().matches("%{%:[%]%}%")
4747
) and
4848
not maybeATestMethod(m)
4949
}

0 commit comments

Comments
 (0)