Skip to content

[Validator] EmailValidator cannot extract hostname if email contains multiple @ symbols #18146

@natechicago

Description

@natechicago

Consider the following email: "hello@world"@google.com. Per RFC-5322, this is definitely a valid email address. It also passes Symfony's default email validation.

However, when the validator attempts to parse the hostname (for the MX & hostname checks), it slices up the email address based on the location of the first @ symbol rather than the last one.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions