From: Marcel Holtmann Date: Wed, 3 Dec 2008 13:59:14 +0000 (+0100) Subject: Replace more unallowed characters X-Git-Tag: 2.0_alpha~4552 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27de961c1576ac7588b100e62b9c3fb55019ed5c;p=framework%2Fconnectivity%2Fconnman.git Replace more unallowed characters --- diff --git a/plugins/wifi.c b/plugins/wifi.c index 6793eb4..5104586 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] = '_';