From 789fceb69f7194d8f7d32156eabf58089b153070 Mon Sep 17 00:00:00 2001 From: David Paleino Date: Tue, 31 Jan 2012 18:23:54 +0100 Subject: [PATCH] Finally really fix the issue with \x00-ESSIDs :( --- wicd/wnettools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wicd/wnettools.py b/wicd/wnettools.py index 0f7f0d4..4afc034 100644 --- a/wicd/wnettools.py +++ b/wicd/wnettools.py @@ -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', '', "", None]: print 'hidden'