mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Additional type check on sensitive network ID parameter
This commit is contained in:
parent
30e35574a1
commit
db6bf4c6b4
1 changed files with 4 additions and 2 deletions
|
@ -19,8 +19,10 @@ function DisplayWPAConfig()
|
|||
$result = 0;
|
||||
$iface = escapeshellarg($_SESSION['wifi_client_interface']);
|
||||
$netid = escapeshellarg(strval($_POST['connect']));
|
||||
exec('sudo wpa_cli -i ' . $iface . ' select_network ' . $netid);
|
||||
$status->addMessage('New network selected', 'success');
|
||||
if (is_numeric($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);
|
||||
$force_remove = true;
|
||||
|
|
Loading…
Reference in a new issue