Prevent parsing email address

This commit is contained in:
M66B
2019-09-08 18:02:20 +02:00
parent 94f3f05d0f
commit 68cb4c559a
2 changed files with 4 additions and 4 deletions

View File

@@ -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);
}
}