add explicit QLDoc that any method named "contains" is matched

This commit is contained in:
erik-krogh
2024-03-12 15:25:27 +01:00
parent 35aae0a981
commit f613823047

View File

@@ -86,7 +86,9 @@ private class HostnameSantizer extends RequestForgerySanitizer {
}
/**
* An argument to a call to `List.contains()` that is a sanitizer for URL redirects.
* An argument to a call to a `.contains()` method that is a sanitizer for URL redirects.
*
* Matches any method call where the method is named `contains`.
*/
private predicate isContainsUrlSanitizer(Guard guard, Expr e, boolean branch) {
guard =