mirror of
https://github.com/disposable-email-domains/disposable-email-domains.git
synced 2024-11-22 16:48:13 +08:00
php typo spotted by @mipapo
This commit is contained in:
parent
0b5292ab3a
commit
0e27a144cd
@ -37,7 +37,7 @@ function is_disposable_email($email) {
|
||||
$path = realpath(dirname(__FILE__)) . '/disposable_email_blacklist.conf';
|
||||
$mail_domains_ko = file($path, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
||||
$mail_domains_ko = array_fill_keys($mail_domains_ko, true);
|
||||
$domain = mb_strtolower(explode('@', trim($email))[1])
|
||||
$domain = mb_strtolower(explode('@', trim($email))[1]);
|
||||
return (isset($mail_domains_ko[$domain]) || array_key_exists($domain, $mail_domains_ko));
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user