diff --git a/includes/configure_client.php b/includes/configure_client.php index ba2e9e6f..6d3466ec 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -134,7 +134,7 @@ function DisplayWPAConfig(){ exec( 'iwconfig wlan0', $iwconfig_return ); foreach ($iwconfig_return as $line) { - if (preg_match( '/ESSID:\"(.+)\"/i',$line,$iwconfig_ssid )) { + if (preg_match( '/ESSID:\"([^"]+)\"/i',$line,$iwconfig_ssid )) { $networks[$iwconfig_ssid[1]]['connected'] = true; } } @@ -173,7 +173,7 @@ function DisplayWPAConfig(){ - +