Update is_email.php

This commit is contained in:
Namhyeon Go 2019-02-26 14:42:16 +09:00 committed by GitHub
parent b98663a291
commit b631d57574
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1091,7 +1091,7 @@ if (!defined('ISEMAIL_VALID')) {
// Check DNS?
$dns_checked = false;
if ($checkDNS && ((int) max($return_status) < ISEMAIL_DNSWARN) && !check_function_exists('dns_get_record')) {
if ($checkDNS && ((int) max($return_status) < ISEMAIL_DNSWARN) && function_exists('dns_get_record')) {
// https://tools.ietf.org/html/rfc5321#section-2.3.5
// Names that can
// be resolved to MX RRs or address (i.e., A or AAAA) RRs (as discussed