summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_dns.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-06 14:34:28 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-11-06 14:34:28 -0400
commit5aaae0e32e633c01bb757afba98b74885fa9a443 (patch)
treebb509d26f96046211cd7e544b064f92065d540c6 /usr/local/www/diag_dns.php
parent0f08affeb4289531bc519a2f0d7d5ba7400a401f (diff)
downloadpfsense-5aaae0e32e633c01bb757afba98b74885fa9a443.zip
pfsense-5aaae0e32e633c01bb757afba98b74885fa9a443.tar.gz
Do not escape strings twice
Diffstat (limited to 'usr/local/www/diag_dns.php')
-rw-r--r--usr/local/www/diag_dns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_dns.php b/usr/local/www/diag_dns.php
index e68fbc8..ec42233 100644
--- a/usr/local/www/diag_dns.php
+++ b/usr/local/www/diag_dns.php
@@ -131,7 +131,7 @@ if ($_POST) {
$type = "hostname";
$resolved = gethostbyname($host);
if($resolved) {
- $dig=`dig "$host_esc" A | grep "$host_esc" | grep -v ";" | awk '{ print $5 }'`;
+ $dig=`dig $host_esc A | grep $host_esc | grep -v ";" | awk '{ print $5 }'`;
$resolved = split("\n", $dig);
}
$hostname = $host;
OpenPOWER on IntegriCloud