Skip to content
New issue

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

Email "www.foo.bar.baz@#" is valid? #312

Open
dadscript opened this issue Feb 11, 2022 · 0 comments
Open

Email "www.foo.bar.baz@#" is valid? #312

dadscript opened this issue Feb 11, 2022 · 0 comments

Comments

@dadscript
Copy link

dadscript commented Feb 11, 2022

<?php

use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Validation\RFCValidation;

$validator = new EmailValidator();

//  "egulias/email-validator": "2.1.25"
$validator->isValid('www.foo.bar.baz@#', new RFCValidation()); //true

//  "egulias/email-validator": "3.1.2"
$validator->isValid('www.foo.bar.baz@#', new RFCValidation()); //false

HTML5 validator is saying also that www.foo.bar.baz@# is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant