Skip to content

Commit 969d9f4

Browse files
committed
fix: lowercase urls to prevent bypass
1 parent 1ee305f commit 969d9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/util/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function isWhitelisted(url: string): boolean {
3333

3434
// Checks if url is blacklisted.
3535
export function isBlacklisted(url: string): boolean {
36-
return blacklist.some((bl) => url.includes(bl))
36+
return blacklist.some((bl) => url.toLowerCase().includes(bl))
3737
}
3838

3939
// Tests if a URL string begins with https://.

0 commit comments

Comments
 (0)