From e82e634b182e354d8eace4aafe5c50f94d986ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20de=20Guillebon?= Date: Fri, 17 Jun 2016 16:22:04 +0200 Subject: [PATCH] Simplified PHP code --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a7e54a..673b473 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,7 @@ else: PHP contributed by @txt3rob ```php function is_temp_mail($mail) { - $list = file_get_contents ('disposable_email_blacklist.conf'); - $mail_domains_ko = explode("\n", $list); + $mail_domains_ko = file('disposable_email_blacklist.conf', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach($mail_domains_ko as $ko_mail) { list($mail_address, $mail_domain) = explode('@',$mail); if(strcasecmp($mail_domain, $ko_mail) == 0){