Revert "Checking invalid emails on the input [MAILPOET-1288]"

This commit is contained in:
pavel-mailpoet
2018-03-06 13:24:42 +00:00
committed by GitHub
parent 92864c2d4f
commit 3d43970fdc
11 changed files with 18 additions and 82 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 && parent::_isEmail($email, null);
$valid_email = (is_email($email) !== false);
return ($permitted_length && $valid_email);
}