No public description PiperOrigin-RevId: 805284878 Change-Id: If0952b447a79d869332d594456b85b302855448e
diff --git a/current/src/main/java/javax/mail/internet/InternetAddress.java b/current/src/main/java/javax/mail/internet/InternetAddress.java index 0d2f81c..59ab969 100644 --- a/current/src/main/java/javax/mail/internet/InternetAddress.java +++ b/current/src/main/java/javax/mail/internet/InternetAddress.java
@@ -1361,7 +1361,7 @@ "Local address ends with dot", addr); break; // done with local part } - if (c <= 040 || c >= 0177) + if (c <= 040 || c == 0177) throw new AddressException( "Local address contains control or whitespace", addr); if (specialsNoDot.indexOf(c) >= 0) @@ -1410,7 +1410,7 @@ throw new AddressException( "Domain literal end not at end of domain", addr); inliteral = false; - } else if (c <= 040 || c >= 0177) { + } else if (c <= 040 || c == 0177) { throw new AddressException( "Domain contains control or whitespace", addr); } else {
diff --git a/patches/01.unicode_check.patch b/patches/01.unicode_check.patch deleted file mode 100644 index 3f61469..0000000 --- a/patches/01.unicode_check.patch +++ /dev/null
@@ -1,26 +0,0 @@ -[PATCH] Restricting unicode symbols in email address -Drop this patch if working on b/111560384. This was done as backward -compatibility mediation for restricting unicode symbols in email address -to preserve old behavior before sun_mail 1.6.2. See also b/328799105 -=================================================================== -diff --git a/src/main/java/javax/mail/internet/InternetAddress.java b/src/main/java/javax/mail/internet/InternetAddress.java ---- a/src/main/java/javax/mail/internet/InternetAddress.java (revision cb7bd7e096d480731b4e28e1ba3ab42f2bc1826a) -+++ b/src/main/java/javax/mail/internet/InternetAddress.java (date 1752154026599) -@@ -1361,7 +1361,7 @@ - "Local address ends with dot", addr); - break; // done with local part - } -- if (c <= 040 || c == 0177) -+ if (c <= 040 || c >= 0177) - throw new AddressException( - "Local address contains control or whitespace", addr); - if (specialsNoDot.indexOf(c) >= 0) -@@ -1410,7 +1410,7 @@ - throw new AddressException( - "Domain literal end not at end of domain", addr); - inliteral = false; -- } else if (c <= 040 || c == 0177) { -+ } else if (c <= 040 || c >= 0177) { - throw new AddressException( - "Domain contains control or whitespace", addr); - } else {
diff --git a/patches/series b/patches/series index 1f1878a..b862149 100644 --- a/patches/series +++ b/patches/series
@@ -1,2 +1 @@ -01.unicode_check.patch 02.input_stream_max_buffer_size.patch \ No newline at end of file