ghostbsd / networkmgr

NetworkMgr is a Python GTK3 network manager for FreeBSD, GhostBSD, TrueOS and DragonFlyBSD
BSD 3-Clause "New" or "Revised" License
95 stars 30 forks source link

Invalid ssid name if uses blank space #11

Closed buzzer-re closed 6 years ago

buzzer-re commented 6 years ago

I had a little problem to connect in my network because i have blank space between my ssid, Example: ssid: 'my wifi', ifconfig only gets 'my' and dont connect correctly!

So, i solved that making that little change in: call('doas ifconfig wlan0 ssid %s' % name, shell=True) to call('doas ifconfig wlan0 ssid \'%s\'' % name, shell=True)

Just put a new single quotes in '%s', to ifconfig accept correctly!

ericbsd commented 6 years ago

there is also this way to call("doas ifconfig wlan0 ssid '%s'" % name, shell=True).

Thanks, I will commit the change right away.

ericbsd commented 6 years ago

https://github.com/GhostBSD/networkmgr/commit/dc75fd3dc8a5ce80eaf873909fa12d669690cf76