No public description PiperOrigin-RevId: 782024457 Change-Id: I8698074e3359af5530b74561d3b520de6d19d205
diff --git a/patches/01.unicode_check.patch b/patches/01.unicode_check.patch new file mode 100644 index 0000000..3f61469 --- /dev/null +++ b/patches/01.unicode_check.patch
@@ -0,0 +1,26 @@ +[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 new file mode 100644 index 0000000..eb400ee --- /dev/null +++ b/patches/series
@@ -0,0 +1 @@ +01.unicode_check.patch