Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91428fc2 authored by Ashwini Munigala's avatar Ashwini Munigala Committed by Gerrit - the friendly Code Review server
Browse files

MAP: Fix parsing special character issue in vcard email.

Replace '<' for '&lt'  and '>' for '&gt' while parsing
email address in vcard pushed from some paticular carkits
in MCE role.

Change-Id: Id24d202a6a60b5edb2de11732527135a7542ecd2
CRs-fixed: 802930
parent a821192a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -225,6 +225,7 @@ public abstract class BluetoothMapbMessage {
                        // Empty phone number - ignore
                }
                else if(line.startsWith("EMAIL:")){
                    line = line.replace("&lt;", "<").replace("&gt;", ">");
                    parts = line.split("[^\\\\]:"); // Split on "un-escaped" :
                    if(parts.length == 2) {
                        String[] subParts = parts[1].split("[^\\\\];");