1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-25 16:02:28 +01:00

Finally really fix the issue with \x00-ESSIDs :(

This commit is contained in:
David Paleino
2012-01-31 18:23:54 +01:00
parent 2d6034375e
commit 789fceb69f

View File

@@ -1255,7 +1255,7 @@ class BaseWirelessInterface(BaseInterface):
# We (well, DBus) don't support ESSIDs with null bytes in it.
# From some bugreports, it seems like some APs transmit the "hidden"
# essid as NULL bytes. Let's strip them off.
ap['essid'].replace('\x00', '')
ap['essid'] = ap['essid'].replace('\x00', '')
if ap['essid'] in ['Hidden', '<hidden>', "", None]:
print 'hidden'