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