Skip to content

Commit

Permalink
fix: Matching against domain goes too far #1820
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Nov 19, 2024
1 parent 7f2fda0 commit e780f8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class SearchHelper {
// subdomain.domain.org
stringToCheck.endsWith(".$word", !searchParameters.caseSensitive) ||
// https://domain.org
stringToCheck.endsWith("\\/$word", !searchParameters.caseSensitive)
stringToCheck.endsWith("/$word", !searchParameters.caseSensitive)
// Don't allow mydomain.org
})
return true
Expand Down

0 comments on commit e780f8a

Please sign in to comment.