Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't sanitize user email prior to validation
Before this, email_is_valid() validated a sanitized string (using filter_var() with FILTER_SANITIZE_EMAIL). We now validate the email exactly as it was entered by the user to ensure we don't accept an address that was actually made valid by the sanitization itself. Fixes #17280
- Loading branch information