mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Resolves #76
This commit is contained in:
parent
85992a67b7
commit
7048a991c8
@ -75,7 +75,9 @@ function DisplayWPAConfig(){
|
|||||||
fwrite($wpa_file, "}".PHP_EOL);
|
fwrite($wpa_file, "}".PHP_EOL);
|
||||||
} else {
|
} else {
|
||||||
if (strlen($network['passphrase']) >=8 && strlen($network['passphrase']) <= 63) {
|
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) {
|
foreach($wpa_passphrase as $line) {
|
||||||
fwrite($wpa_file, $line.PHP_EOL);
|
fwrite($wpa_file, $line.PHP_EOL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user