mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Limit hotspot name and password to only lowercase letters (on 29+)
This commit is contained in:
@@ -437,9 +437,8 @@ class HotspotManager {
|
|||||||
return "WIFI:S:" + ssid + ";T:WPA;P:" + password + ";;";
|
return "WIFI:S:" + ssid + ";T:WPA;P:" + password + ";;";
|
||||||
}
|
}
|
||||||
|
|
||||||
// exclude chars that are easy to confuse: 0 O, 5 S, 1 l I
|
// exclude chars that are easy to confuse: 0 (O), 5 (S), 1 l (I)
|
||||||
private static final String chars =
|
private static final String chars = "2346789abcdefghijkmnopqrstuvwxyz";
|
||||||
"2346789ABCDEFGHJKLMNPQRTUVWXYZabcdefghijkmnopqrstuvwxyz";
|
|
||||||
|
|
||||||
private String getRandomString(int length) {
|
private String getRandomString(int length) {
|
||||||
char[] c = new char[length];
|
char[] c = new char[length];
|
||||||
|
|||||||
Reference in New Issue
Block a user