mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Resolves #49
This commit is contained in:
parent
80fd46ff82
commit
261c90473d
@ -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(){
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<input type="hidden" name="ssid<?php echo $index ?>" value="<?php echo $ssid ?>" />
|
||||
<input type="hidden" name="ssid<?php echo $index ?>" value="<?php echo htmlentities($ssid) ?>" />
|
||||
<?php echo $ssid ?>
|
||||
</td>
|
||||
<?php if ($network['visible']) { ?>
|
||||
|
Loading…
Reference in New Issue
Block a user