diff options
author | jim-p <jimp@pfsense.org> | 2011-08-30 16:33:58 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-08-30 16:34:14 -0400 |
commit | 360ed9fa245aac20cd80198f22d01233b74cf0c1 (patch) | |
tree | 9b0b15a3bc8e0b4522349dfd2f82e9ef1296e98d /usr | |
parent | 40af551fe5629b8fbfeb687d6151bef3e595d989 (diff) | |
download | pfsense-360ed9fa245aac20cd80198f22d01233b74cf0c1.zip pfsense-360ed9fa245aac20cd80198f22d01233b74cf0c1.tar.gz |
Avoid a blank trailing entry
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/diag_dns.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php index fcb939d..cf5c397 100644 --- a/usr/local/www/diag_dns.php +++ b/usr/local/www/diag_dns.php @@ -103,7 +103,7 @@ if ($_POST) { if ((is_hostname($host) || is_ipaddr($host))) { $dns_speeds = array(); $resolvconf_servers = `grep nameserver /etc/resolv.conf | cut -f2 -d' '`; - $dns_servers = explode("\n", $resolvconf_servers); + $dns_servers = explode("\n", trim($resolvconf_servers)); foreach ($dns_servers as $dns_server) { $query_time = `dig {$host_esc} @{$dns_server} | grep Query | cut -d':' -f2`; if($query_time == "") |