Apply suggestions from code review - improved sanitizer checks.

Co-authored-by: Alvaro Muñoz <pwntester@github.com>
This commit is contained in:
Francis Alexander
2021-02-17 18:58:32 +05:30
committed by GitHub
parent 40f4e71b86
commit 2baf2aa5c1

View File

@@ -33,6 +33,9 @@ class CorsProbableCheckAccess extends MethodAccess {
getMethod().hasName("contains") and
getMethod().getDeclaringType().getASourceSupertype*() instanceof CollectionType
or
getMethod().hasName("containsKey") and
getMethod().getDeclaringType().getASourceSupertype*() instanceof MapType
or
getMethod().hasName("equals") and
getQualifier().getType() instanceof TypeString
}