Commit ed1f7aca authored by sopel's avatar sopel

MX checking disabled by default

parent 20f8581c
......@@ -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]';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment