E-mail validator does not allow IDN ascii domain labels

Description

implemented support for IDN in the EmailValidator, but in commit db8c4f0 in january 2017 the implementation was changed (spesifically the domain validation was moved to a new class). This new implementation of domain validation does not allow -- in domain labels, and as such, the ascii representation of IDN domain labels fails to validate, even though most email programs will accept it, since the domain is in fact a valid ascii domain name.

One quick example is for instance nothing@xn--fken-gra.no (the domain isn't registered, but should serve for this example.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Andreas Marienborg

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Minor
Configure