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

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.

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