mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Update connect var sanitization
This commit is contained in:
		| @@ -17,12 +17,9 @@ function DisplayWPAConfig() | ||||
|  | ||||
|     if (isset($_POST['connect'])) { | ||||
|         $result = 0; | ||||
|         $iface = escapeshellarg($_SESSION['wifi_client_interface']); | ||||
|         $netid = intval($_POST['connect']); | ||||
|         if (is_numeric($netid)) { | ||||
|             exec('sudo wpa_cli -i ' . $iface . ' select_network ' . $netid); | ||||
|             $status->addMessage('New network selected', 'success'); | ||||
|         } | ||||
|         exec('sudo wpa_cli -i ' . $_SESSION['wifi_client_interface'] . ' select_network ' . $netid); | ||||
|         $status->addMessage('New network selected', 'success'); | ||||
|     } elseif (isset($_POST['wpa_reinit'])) { | ||||
|         $status->addMessage('Reinitializing wpa_supplicant', 'info', false); | ||||
|         $force_remove = true; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user