1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-08 06:44:20 +01:00

Don't support wireless networks with '\x00' in the ESSID

This commit is contained in:
David Paleino
2011-12-29 12:16:17 +01:00
parent 68b8d84231
commit 8aa66e4974
5 changed files with 33 additions and 2 deletions

View File

@@ -1251,6 +1251,12 @@ class BaseWirelessInterface(BaseInterface):
except (UnicodeDecodeError, UnicodeEncodeError):
print 'Unicode problem with current network essid, ignoring!!'
return None
# We (well, DBus) don't support ESSIDs with null bytes in it.
# Substitute the byte for use everywhere, so that the UIs know
# what to disable.
ap['essid'].replace('\x00', '<NULL>')
if ap['essid'] in ['Hidden', '<hidden>', "", None]:
print 'hidden'
ap['hidden'] = True