1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00
This commit is contained in:
Bill Zimmerman 2017-05-19 13:25:47 +00:00
parent 80fd46ff82
commit 261c90473d

View File

@ -134,7 +134,7 @@ function DisplayWPAConfig(){
exec( 'iwconfig wlan0', $iwconfig_return ); exec( 'iwconfig wlan0', $iwconfig_return );
foreach ($iwconfig_return as $line) { 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; $networks[$iwconfig_ssid[1]]['connected'] = true;
} }
} }
@ -173,7 +173,7 @@ function DisplayWPAConfig(){
<?php } ?> <?php } ?>
</td> </td>
<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 ?> <?php echo $ssid ?>
</td> </td>
<?php if ($network['visible']) { ?> <?php if ($network['visible']) { ?>