Apply suggestions from code review

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
Tony Torralba
2022-01-14 13:38:17 +01:00
committed by GitHub
parent 877c52981f
commit 136fefbab5

View File

@@ -122,7 +122,7 @@ private predicate isDisallowListCheck(MethodAccess ma) {
*/
private class PathMatchGuard extends UnsafeUrlForwardBarrierGuard {
PathMatchGuard() {
isExactStringPathMatch(this) or isStringPathMatch(this) or isFilePathMatch(this)
isExactStringPathMatch(this) or isAllowListCheck(this) or isDisallowListCheck(this)
}
override predicate checks(Expr e, boolean branch) {