mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix big with disposable email matcher
This commit is contained in:
parent
23b5ba2883
commit
0cbbc938e9
1 changed files with 1 additions and 1 deletions
|
@ -550,7 +550,7 @@ class Site < Sequel::Model
|
|||
disposable_email_domains = File.readlines DISPOSABLE_EMAIL_BLACKLIST_PATH
|
||||
|
||||
disposable_email_domains.each do |disposable_email_domain|
|
||||
return true if email.match disposable_email_domain.strip
|
||||
return true if email.match /@#{disposable_email_domain.strip}$/i
|
||||
end
|
||||
|
||||
false
|
||||
|
|
Loading…
Add table
Reference in a new issue