Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid email assumed to be valid AKA Why are untrimmed emails considered valid emails? #225

Open
TimeBomb opened this issue Feb 20, 2019 · 0 comments

Comments

@TimeBomb
Copy link

Due to strip() invoked on address at

parse_rs = parser.parse(address.strip(), lexer=lexer.clone())
any address passed to is_email that contains trailing or leading whitespace is considered a valid email, making the occasionally incorrect assumption that the consumer will strip whitespace from the presumed-valid email.
This can cause issues where an invalid email, i.e. one containing leading/trailing whitespace, is assumed to be valid.

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

No branches or pull requests

1 participant