summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-12-24 01:10:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-12-24 01:10:12 +0000
commit09cb1861cea5e3583d63c27664a083e07110db67 (patch)
treee76c464da3923c3f5e650d8515a7d5604000d83e /usr/local
parent0c361483f37979dfff96453c16b5e5c0c1efefee (diff)
downloadpfsense-09cb1861cea5e3583d63c27664a083e07110db67.zip
pfsense-09cb1861cea5e3583d63c27664a083e07110db67.tar.gz
Do not corrupt output when a space is in the SSID name.
Ticket #1531
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/status_wireless.php16
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";
}
OpenPOWER on IntegriCloud