1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-01 19:42:30 +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

@@ -861,7 +861,11 @@ class WirelessNetworkEntry(NetworkEntry):
self.show_all()
self.advanced_dialog = WirelessSettingsDialog(networkID)
self.wifides = self.connect("destroy", self.destroy_called)
# Disable widget if the ESSID contains one (or more) NULL byte
if '<NULL>' in self.essid:
self.set_sensitive(False)
def _escape(self, val):
""" Escapes special characters so they're displayed correctly. """
return val.replace("&", "&amp;").replace("<", "&lt;").\