summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_dns.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-08-31 22:23:15 +0545
committerPhil Davis <phil.davis@inf.org>2015-08-31 22:23:15 +0545
commit288a2a0f294f992a9536dfbb5c54dd528badbad5 (patch)
tree8d1c6be8a2cf5848f6df06b631ce2614485648fe /src/usr/local/www/diag_dns.php
parent683ba309d50913828decb5fe3f6ade059c1dfab2 (diff)
downloadpfsense-288a2a0f294f992a9536dfbb5c54dd528badbad5.zip
pfsense-288a2a0f294f992a9536dfbb5c54dd528badbad5.tar.gz
bootstrap usr/local/www a to e minor edits
Diffstat (limited to 'src/usr/local/www/diag_dns.php')
-rwxr-xr-xsrc/usr/local/www/diag_dns.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php
index a1267e2..45c4a91 100755
--- a/src/usr/local/www/diag_dns.php
+++ b/src/usr/local/www/diag_dns.php
@@ -91,9 +91,9 @@ if (isset($_POST['create_alias']) && (is_hostname($host) || is_ipaddr($host))) {
$resolved = array();
exec("/usr/bin/drill {$host_esc} A | /usr/bin/grep {$host_esc} | /usr/bin/grep -v ';' | /usr/bin/awk '{ print $5 }'", $resolved);
$isfirst = true;
- foreach($resolved as $re) {
- if($re != "") {
- if(!$isfirst)
+ foreach ($resolved as $re) {
+ if ($re != "") {
+ if (!$isfirst)
$addresses .= " ";
$addresses .= rtrim($re) . "/32";
$isfirst = false;
OpenPOWER on IntegriCloud