summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshwini Munigala <AshwiniM@codeaurora.org>2015-03-04 14:48:38 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-03-09 03:04:24 -0700
commit91428fc2175173fd586cd182a6b47a088e65bd6e (patch)
treea1010e51f9194dc0b6157ffeeeae7d9e91baf92e
parenta821192ace9732295abee7e3c0837339b084d847 (diff)
downloadandroid_packages_apps_Bluetooth-91428fc2175173fd586cd182a6b47a088e65bd6e.tar.gz
android_packages_apps_Bluetooth-91428fc2175173fd586cd182a6b47a088e65bd6e.tar.bz2
android_packages_apps_Bluetooth-91428fc2175173fd586cd182a6b47a088e65bd6e.zip
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
-rwxr-xr-x[-rw-r--r--]src/com/android/bluetooth/map/BluetoothMapbMessage.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/map/BluetoothMapbMessage.java b/src/com/android/bluetooth/map/BluetoothMapbMessage.java
index 21d96f13d..7d4d586c4 100644..100755
--- a/src/com/android/bluetooth/map/BluetoothMapbMessage.java
+++ b/src/com/android/bluetooth/map/BluetoothMapbMessage.java
@@ -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("[^\\\\];");