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

DNSCheckValidation returning valid true for email "0" #235

Closed
nizamani opened this issue Feb 17, 2020 · 2 comments
Closed

DNSCheckValidation returning valid true for email "0" #235

nizamani opened this issue Feb 17, 2020 · 2 comments
Labels

Comments

@nizamani
Copy link

nizamani commented Feb 17, 2020

Class Egulias\EmailValidator\Validation\DNSCheckValidation is returning email "0" as valid email, for some reason DNS check is passing when email is "0", I perform validation check using following code:

$isEmailValid = $dnsCheckValidation->isValid($email, new EmailLexer());

In above example $isEmailValid is returned as true and "0" becomes a valid email address.

Edited on 10:51 2/20/2020 (GMT +5)
Egulias\EmailValidator\Validation\DNSCheckValidation isValid() also returns true for these email addresses:
new.email
email.com

@egulias egulias added the bug label Oct 11, 2020
@egulias
Copy link
Owner

egulias commented Dec 29, 2020

Fixed in v3.
Can you please confirm that this still fails in latest v2 (2.1.25)?

@egulias
Copy link
Owner

egulias commented Dec 30, 2020

Tested, should be fixed in 2.1.25.

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

No branches or pull requests

2 participants