From e9fdbe094a5edda6f85d2b532ccc51c260234da6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 15 Dec 2008 16:53:24 +0100 Subject: [PATCH] Allow numbers in path for network objects --- plugins/wifi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 9cddb61..be2358c 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -316,9 +316,9 @@ static void scan_result(struct connman_element *device, temp = g_strdup(network->identifier); for (i = 0; i < strlen(temp); i++) { - gchar tmp = g_ascii_tolower(temp[i]); - - if (tmp < 'a' || tmp > 'z') + char tmp = temp[i]; + if ((tmp < '0' || tmp > '9') && (tmp < 'A' || tmp > 'Z') && + (tmp < 'a' || tmp > 'z')) temp[i] = '_'; } -- 2.7.4