1
0
mirror of synced 2024-12-13 06:46:03 +03:00

MX checking disabled by default

This commit is contained in:
sopel 2006-09-20 12:29:05 +00:00
parent 20f8581c83
commit ed1f7aca93

View File

@ -14,10 +14,12 @@ class Doctrine_Validator_Email {
if(empty($value))
return true;
$parts = explode("@", $value);
if(isset($parts[1]) && function_exists("checkdnsrr")) {
if( ! checkdnsrr($parts[1], "MX"))
return false;
if(isset($args[0])) {
$parts = explode("@", $value);
if(isset($parts[1]) && function_exists("checkdnsrr")) {
if( ! checkdnsrr($parts[1], "MX"))
return false;
}
}
$qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]';