1
0
mirror of https://github.com/gryf/wicd.git synced 2026-01-03 04:14:12 +01:00

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

This commit is contained in:
David Paleino
2011-12-29 11:58:32 +01:00
parent 68b8d84231
commit 0a2c9e2640
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;").\