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

Commit 11de9e55 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix handling escaped chars in ssid

Bug: 7427185
Change-Id: Ie669dff01af0865ea50305f3b48cf3f7af92cf6f
parent 2bc0c5fe
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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++;