From 09cb1861cea5e3583d63c27664a083e07110db67 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 24 Dec 2007 01:10:12 +0000 Subject: Do not corrupt output when a space is in the SSID name. Ticket #1531 --- usr/local/www/status_wireless.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'usr') 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 ""; - print "{$state_split[0]}"; - print "{$state_split[1]}"; - print "{$state_split[2]}"; - print "{$state_split[3]}"; - print "{$state_split[4]}"; - print "{$state_split[5]}"; - print "{$state_split[6]}"; + print "{$state_split[$starting_at]}"; + print "{$state_split[$starting_at+1]}"; + print "{$state_split[$starting_at+2]}"; + print "{$state_split[$starting_at+3]}"; + print "{$state_split[$starting_at+4]}"; + print "{$state_split[$starting_at+5]}"; + print "{$state_split[$starting_at+6]}"; print "\n"; print "\n"; } -- cgit v1.1