mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-24 16:40:24 +00:00
Update sanitize wifi_client_interface var
This commit is contained in:
parent
7adbfe143d
commit
157f29b858
1 changed files with 2 additions and 1 deletions
|
@ -17,8 +17,9 @@ function DisplayWPAConfig()
|
|||
|
||||
if (isset($_POST['connect'])) {
|
||||
$result = 0;
|
||||
$iface = escapeshellarg($_SESSION['wifi_client_interface']);
|
||||
$netid = intval($_POST['connect']);
|
||||
exec('sudo wpa_cli -i ' . $_SESSION['wifi_client_interface'] . ' select_network ' . $netid);
|
||||
exec('sudo wpa_cli -i ' . $iface . ' select_network ' . $netid);
|
||||
$status->addMessage('New network selected', 'success');
|
||||
} elseif (isset($_POST['wpa_reinit'])) {
|
||||
$status->addMessage('Reinitializing wpa_supplicant', 'info', false);
|
||||
|
|
Loading…
Reference in a new issue