1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Properly cleanup iCalendar attendee

This commit is contained in:
M66B 2024-10-28 07:57:55 +01:00
parent 7a0804e5aa
commit 70775afb80

View file

@ -4206,9 +4206,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
at biweekly.ICalendar.write(SourceFile:2)
*/
if (!TextUtils.isEmpty(email))
email = email.replaceAll("\\s+", "");
email = email
.replace("\n", " ")
.replace("\r", " ")
.replace("\"", "'");
if (!TextUtils.isEmpty(name))
name = name.replaceAll("\\s+", " ");
name = name
.replace("\n", " ")
.replace("\r", " ")
.replace("\"", "'");
Attendee attendee = new Attendee(name, email);
//attendee.setCalendarUserType(CalendarUserType.INDIVIDUAL);