|
HV-472 Closed 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.
@Test
public void testIDNExpanded() throws Exception {
isValidEmail("nothing@xn--fken-gra.no");
}
|