1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-04 22:40:32 +00:00

Revert "Allow semi colon in email addresses"

This reverts commit c8e774aa74.
This commit is contained in:
M66B 2021-12-21 08:42:02 +01:00
parent 7deb0d1283
commit 9ce98947cf

View file

@ -1341,10 +1341,10 @@ public class InternetAddress extends Address implements Cloneable {
}
if (c <= 040 || c == 0177)
throw new AddressException(
"Local address contains control or whitespace (" + Integer.toString(c) + ")", addr);
if (c != ':' && specialsNoDot.indexOf(c) >= 0)
"Local address contains control or whitespace", addr);
if (specialsNoDot.indexOf(c) >= 0)
throw new AddressException(
"Local address contains illegal character '" + c + "'", addr);
"Local address contains illegal character", addr);
}
if (inquote)
throw new AddressException("Unterminated quote", addr);