1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +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

@@ -364,6 +364,9 @@ class NetLabel(urwid.WidgetWrap):
self.__super.__init__(w)
def selectable(self):
# Disable widget if the ESSID contains one (or more) NULL byte
if '<NULL>' in self.essid:
return False
return True
def keypress(self,size,key):
return self._w.keypress(size,key)