mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 05:34:51 +00:00
Properly cleanup iCalendar attendee
This commit is contained in:
parent
7a0804e5aa
commit
70775afb80
1 changed files with 8 additions and 2 deletions
|
@ -4206,9 +4206,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
at biweekly.ICalendar.write(SourceFile:2)
|
at biweekly.ICalendar.write(SourceFile:2)
|
||||||
*/
|
*/
|
||||||
if (!TextUtils.isEmpty(email))
|
if (!TextUtils.isEmpty(email))
|
||||||
email = email.replaceAll("\\s+", "");
|
email = email
|
||||||
|
.replace("\n", " ")
|
||||||
|
.replace("\r", " ")
|
||||||
|
.replace("\"", "'");
|
||||||
if (!TextUtils.isEmpty(name))
|
if (!TextUtils.isEmpty(name))
|
||||||
name = name.replaceAll("\\s+", " ");
|
name = name
|
||||||
|
.replace("\n", " ")
|
||||||
|
.replace("\r", " ")
|
||||||
|
.replace("\"", "'");
|
||||||
|
|
||||||
Attendee attendee = new Attendee(name, email);
|
Attendee attendee = new Attendee(name, email);
|
||||||
//attendee.setCalendarUserType(CalendarUserType.INDIVIDUAL);
|
//attendee.setCalendarUserType(CalendarUserType.INDIVIDUAL);
|
||||||
|
|
Loading…
Reference in a new issue