We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phalcon\Mvc\Model\Validator\Email is validating emails addresses with a dot right before the "@". These addresses are invalid.
Code example:
$email = 'username.@domain.com'; $regexp = "/^[a-zA-Z0-9\\-_\\.\\+]+@[a-zA-Z0-9_\\-]+(\\.[a-zA-Z0-9_\\-]+)*$/"; // Phalcon email validate regex (https://github.com/phalcon/cphalcon/blob/master/ext/mvc/model/validator/email.c#L119) echo preg_match($regexp, $email) == 1 ? 'valid' : 'error'; // valid // PHP validate (http://www.php.net/manual/en/filter.examples.validation.php) echo filter_var($email, FILTER_VALIDATE_EMAIL) ? 'valid' : 'error'; // error
The text was updated successfully, but these errors were encountered:
This was fixe by @sjinks in 1.3.0, thanks
Sorry, something went wrong.
No branches or pull requests
Phalcon\Mvc\Model\Validator\Email is validating emails addresses with a dot right before the "@". These addresses are invalid.
Code example:
The text was updated successfully, but these errors were encountered: