From bdeca4ed169b8eab49233f32c74e7fa6d1334aa7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 24 Dec 2007 01:10:29 +0000 Subject: Do not corrupt output when a space is in the SSID name. Ticket #1531 --- usr/local/www/status_wireless.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/status_wireless.php b/usr/local/www/status_wireless.php index 35ad0bf..ae8faf7 100755 --- a/usr/local/www/status_wireless.php +++ b/usr/local/www/status_wireless.php @@ -110,13 +110,17 @@ display_top_tabs($tab_array); $state_fixed = str_replace(" ", " ", $state_fixed); $state_split = split(" ", $state_fixed); 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]}"; + $state_split = split(" ", $state_fixed); + $items = count($state_split); + $starting_at = $items-8; + print ""; + 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