diff --git a/includes/configure_client.php b/includes/configure_client.php index fc24058e..18ad4dc2 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -18,7 +18,7 @@ function DisplayWPAConfig() if (isset($_POST['connect'])) { $result = 0; $iface = escapeshellarg($_SESSION['wifi_client_interface']); - $netid = escapeshellarg(strval($_POST['connect'])); + $netid = intval($_POST['connect']); if (is_numeric($netid)) { exec('sudo wpa_cli -i ' . $iface . ' select_network ' . $netid); $status->addMessage('New network selected', 'success');