Checking invalid emails on the input [MAILPOET-1288]

This commit is contained in:
Rostislav Wolny
2018-03-06 19:54:23 +01:00
parent 2f05eaf528
commit 46493b991c
11 changed files with 82 additions and 18 deletions

View File

@ -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);
}