From 11de9e5537914bbe140fd99ad55333e48a14a667 Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Mon, 29 Oct 2012 10:01:38 -0700 Subject: Fix handling escaped chars in ssid Bug: 7427185 Change-Id: Ie669dff01af0865ea50305f3b48cf3f7af92cf6f --- wifi/java/android/net/wifi/WifiSsid.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wifi') diff --git a/wifi/java/android/net/wifi/WifiSsid.java b/wifi/java/android/net/wifi/WifiSsid.java index 3e5f10f..55e9b2d 100644 --- a/wifi/java/android/net/wifi/WifiSsid.java +++ b/wifi/java/android/net/wifi/WifiSsid.java @@ -89,21 +89,27 @@ public class WifiSsid implements Parcelable { switch(asciiEncoded.charAt(i)) { case '\\': octets.write('\\'); + i++; break; case '"': octets.write('"'); + i++; break; case 'n': octets.write('\n'); + i++; break; case 'r': octets.write('\r'); + i++; break; case 't': octets.write('\t'); + i++; break; case 'e': octets.write(27); //escape char + i++; break; case 'x': i++; -- cgit v1.1