MX checking disabled by default
This commit is contained in:
parent
20f8581c83
commit
ed1f7aca93
@ -14,10 +14,12 @@ class Doctrine_Validator_Email {
|
|||||||
if(empty($value))
|
if(empty($value))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
$parts = explode("@", $value);
|
if(isset($args[0])) {
|
||||||
if(isset($parts[1]) && function_exists("checkdnsrr")) {
|
$parts = explode("@", $value);
|
||||||
if( ! checkdnsrr($parts[1], "MX"))
|
if(isset($parts[1]) && function_exists("checkdnsrr")) {
|
||||||
return false;
|
if( ! checkdnsrr($parts[1], "MX"))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]';
|
$qtext = '[^\\x0d\\x22\\x5c\\x80-\\xff]';
|
||||||
|
Loading…
Reference in New Issue
Block a user