mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Prevent parsing email address
This commit is contained in:
@@ -564,8 +564,8 @@ public class MessageHelper {
|
||||
try {
|
||||
MailTo mailto = MailTo.parse(entry.substring(lt + 1, gt));
|
||||
if (mailto.getTo() != null)
|
||||
return new Address[]{new InternetAddress(mailto.getTo().split(",")[0])};
|
||||
} catch (android.net.ParseException ex) {
|
||||
return new Address[]{new InternetAddress(mailto.getTo().split(",")[0], null)};
|
||||
} catch (Throwable ex) {
|
||||
Log.i(ex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user