From 7048a991c80ddfafc72f8393986fa16bc5c2e8f7 Mon Sep 17 00:00:00 2001 From: Bill Zimmerman Date: Sat, 3 Jun 2017 14:25:11 +0000 Subject: [PATCH] Resolves #76 --- includes/configure_client.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/configure_client.php b/includes/configure_client.php index 6d3466ec..02189325 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -75,7 +75,9 @@ function DisplayWPAConfig(){ fwrite($wpa_file, "}".PHP_EOL); } else { if (strlen($network['passphrase']) >=8 && strlen($network['passphrase']) <= 63) { - exec( 'wpa_passphrase '.escapeshellarg($ssid). ' ' . escapeshellarg($network['passphrase']),$wpa_passphrase ); + unset($wpa_passphrase); + unset($line); + exec( 'wpa_passphrase '.escapeshellarg($ssid). ' ' . escapeshellarg($network['passphrase']),$wpa_passphrase ); foreach($wpa_passphrase as $line) { fwrite($wpa_file, $line.PHP_EOL); }