[Validator] Remove leading '@' when validating email domain MX record
This commit is contained in:
parent
74bc9d461b
commit
a86bac44ce
@ -29,7 +29,7 @@ class EmailValidator extends ConstraintValidator
|
||||
}
|
||||
|
||||
if ($constraint->checkMX) {
|
||||
$host = substr($value, strpos($value, '@'));
|
||||
$host = substr($value, strpos($value, '@') + 1);
|
||||
|
||||
if (!$this->checkMX($host)) {
|
||||
$this->setMessage($constraint->message, array('value' => $value));
|
||||
|
Reference in New Issue
Block a user