diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-12-24 01:10:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-12-24 01:10:12 +0000 |
commit | 09cb1861cea5e3583d63c27664a083e07110db67 (patch) | |
tree | e76c464da3923c3f5e650d8515a7d5604000d83e /usr | |
parent | 0c361483f37979dfff96453c16b5e5c0c1efefee (diff) | |
download | pfsense-09cb1861cea5e3583d63c27664a083e07110db67.zip pfsense-09cb1861cea5e3583d63c27664a083e07110db67.tar.gz |
Do not corrupt output when a space is in the SSID name.
Ticket #1531
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_wireless.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index 641800e..91afc36 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -111,14 +111,16 @@ display_top_tabs($tab_array); $state_fixed = str_replace(" ", " ", $state_fixed); $state_fixed = str_replace(" ", " ", $state_fixed); $state_split = split(" ", $state_fixed); + $items = count($state_split); + $starting_at = $items-8; print "<tr>"; - print "<td>{$state_split[0]}</td>"; - print "<td>{$state_split[1]}</td>"; - print "<td>{$state_split[2]}</td>"; - print "<td>{$state_split[3]}</td>"; - print "<td>{$state_split[4]}</td>"; - print "<td>{$state_split[5]}</td>"; - print "<td>{$state_split[6]}</td>"; + print "<td>{$state_split[$starting_at]}</td>"; + print "<td>{$state_split[$starting_at+1]}</td>"; + print "<td>{$state_split[$starting_at+2]}</td>"; + print "<td>{$state_split[$starting_at+3]}</td>"; + print "<td>{$state_split[$starting_at+4]}</td>"; + print "<td>{$state_split[$starting_at+5]}</td>"; + print "<td>{$state_split[$starting_at+6]}</td>"; print "</tr>\n"; print "<!-- $state_fixed -->\n"; } |