mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Simplified psk escape process.
This commit is contained in:
@@ -446,7 +446,7 @@ class WirelessConnectThread(ConnectThread):
|
|||||||
re.I | re.M | re.S)
|
re.I | re.M | re.S)
|
||||||
self.network['psk'] = misc.RunRegex(key_pattern,
|
self.network['psk'] = misc.RunRegex(key_pattern,
|
||||||
misc.Run('wpa_passphrase "' + self.network['essid'] +
|
misc.Run('wpa_passphrase "' + self.network['essid'] +
|
||||||
'" "' + misc.shell_escape(self.network['key'])
|
'" "' + re.escape(self.network['key'])
|
||||||
+ '"'))
|
+ '"'))
|
||||||
# Generate the wpa_supplicant file...
|
# Generate the wpa_supplicant file...
|
||||||
if self.network.get('enctype') is not None:
|
if self.network.get('enctype') is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user