mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Disabled route addresses
https://datatracker.ietf.org/doc/html/rfc5322#section-4.4
This commit is contained in:
parent
dae52a1c2f
commit
9d2b34dff1
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue