Checking invalid emails on the input [MAILPOET-1288]
This commit is contained in:
@ -32,7 +32,7 @@ class ModelValidator extends \Sudzy\Engine {
|
||||
|
||||
function validateEmail($email) {
|
||||
$permitted_length = (strlen($email) >= self::EMAIL_MIN_LENGTH && strlen($email) <= self::EMAIL_MAX_LENGTH);
|
||||
$valid_email = (is_email($email) !== false);
|
||||
$valid_email = is_email($email) !== false && parent::_isEmail($email, null);
|
||||
return ($permitted_length && $valid_email);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user