Do not treat space as separator for multiple remote gateway entries (bug 712710) gnome712710
authorTJ <gnome@iam.tj>
Tue, 19 Nov 2013 20:06:07 +0000 (20:06 +0000)
committerTJ <gnome@iam.tj>
Tue, 19 Nov 2013 20:06:07 +0000 (20:06 +0000)
src/nm-openvpn-service.c

index 8589b57..3975643 100644 (file)
@@ -906,7 +906,7 @@ nm_openvpn_start_openvpn_binary (NMOpenvpnPlugin *plugin,
        tmp = nm_setting_vpn_get_data_item (s_vpn, NM_OPENVPN_KEY_REMOTE);
        if (tmp && strlen (tmp)) {
                char *tok;
-               while ((tok = strsep((char**)&tmp, " ,")) != NULL) {
+               while ((tok = strsep((char**)&tmp, ",")) != NULL) {
                        if (strlen(tok)) {
                                add_openvpn_arg (args, "--remote");
                                add_openvpn_arg (args, tok);