mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 00:23:09 +02:00
Disabled route addresses
https://datatracker.ietf.org/doc/html/rfc5322#section-4.4
This commit is contained in:
@@ -1093,6 +1093,7 @@ public class InternetAddress extends Address implements Cloneable {
|
||||
throw new AddressException("Nested group", s, index);
|
||||
if (start == -1)
|
||||
start = index;
|
||||
if (true) break;
|
||||
if (parseHdr && !strict) {
|
||||
/*
|
||||
* If next char is a special character that can't occur at
|
||||
@@ -1342,7 +1343,7 @@ 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 (specialsNoDot.indexOf(c) >= 0)
|
||||
if (c != ':' && specialsNoDot.indexOf(c) >= 0)
|
||||
throw new AddressException(
|
||||
"Local address contains illegal character '" + c + "'", addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user