mirror of
https://github.com/gryf/wicd.git
synced 2025-12-19 20:38:00 +01:00
Committed patch from Sabin Iacob to sanitize a user's psk, to prevent possible parsing errors and security risks.
This commit is contained in:
@@ -446,7 +446,8 @@ class WirelessConnectThread(ConnectThread):
|
||||
re.I | re.M | re.S)
|
||||
self.network['psk'] = misc.RunRegex(key_pattern,
|
||||
misc.Run('wpa_passphrase "' + self.network['essid'] +
|
||||
'" "' + self.network['key'] + '"'))
|
||||
'" "' + misc.shell_escape(self.network['key'])
|
||||
+ '"'))
|
||||
# Generate the wpa_supplicant file...
|
||||
if self.network.get('enctype') is not None:
|
||||
self.SetStatus('generating_wpa_config')
|
||||
|
||||
Reference in New Issue
Block a user