diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-03 14:59:14 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-03 14:59:14 +0100 |
commit | 27de961c1576ac7588b100e62b9c3fb55019ed5c (patch) | |
tree | ab010636f26d8883606e71f3ad6a79c9b711df64 /plugins/wifi.c | |
parent | 0389ef2cd3b8836959c67895e3fee5802d8f64ea (diff) | |
download | connman-27de961c1576ac7588b100e62b9c3fb55019ed5c.tar.gz connman-27de961c1576ac7588b100e62b9c3fb55019ed5c.tar.bz2 connman-27de961c1576ac7588b100e62b9c3fb55019ed5c.zip |
Replace more unallowed characters
Diffstat (limited to 'plugins/wifi.c')
-rw-r--r-- | plugins/wifi.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 6793eb47..51045869 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -185,7 +185,11 @@ static void scan_result(struct connman_element *parent, temp = g_strdup(network->identifier); for (i = 0; i < strlen(temp); i++) { - if (temp[i] == ' ' || temp[i] == '.' || temp[i] == '-') + if (temp[i] == ' ' || temp[i] == '.') + temp[i] = '_'; + else if (temp[i] == '-' || temp[i] == '+') + temp[i] = '_'; + else if (temp[i] == '!' || temp[i] == '?') temp[i] = '_'; else if (temp[i] == '(' || temp[i] == ')') temp[i] = '_'; |