php typo spotted by @mipapo

This commit is contained in:
Martin Cech 2018-04-17 11:09:00 -04:00 committed by GitHub
parent 0b5292ab3a
commit 0e27a144cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
}
```