Fix the ssid display issue
Reproduce steps: 1. Set a special AP name that contains "=" (looks like "-=^-^=-"); 2. Connect to this AP; 3. The display of ssid will be incorrect; Change-Id: Idc7433a42cf59932f5fb147f5500e0175f745399
This commit is contained in:
committed by
Jean-Baptiste Queru
parent
9451e71cf5
commit
baccb91ece
@@ -1373,7 +1373,7 @@ public class WifiStateTracker extends NetworkStateTracker {
|
||||
int netId = -1;
|
||||
String[] lines = reply.split("\n");
|
||||
for (String line : lines) {
|
||||
String[] prop = line.split(" *= *");
|
||||
String[] prop = line.split(" *= *", 2);
|
||||
if (prop.length < 2)
|
||||
continue;
|
||||
String name = prop[0];
|
||||
|
||||
Reference in New Issue
Block a user