summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_dns.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-12-11 18:26:24 -0500
committerChris Buechler <cmb@pfsense.org>2009-12-11 18:26:24 -0500
commite8ce1bd1079458200a41f13acd085a262ed54225 (patch)
tree06c40ab426ec5c87de96ee9d98bdeaaaaf191969 /usr/local/www/diag_dns.php
parente4e3f16eb4edb49f509357b85224cdf329a0835c (diff)
downloadpfsense-e8ce1bd1079458200a41f13acd085a262ed54225.zip
pfsense-e8ce1bd1079458200a41f13acd085a262ed54225.tar.gz
fix input validation
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 fe0c888..8b114e4 100644
--- a/usr/local/www/diag_dns.php
+++ b/usr/local/www/diag_dns.php
@@ -48,7 +48,7 @@ if ($_POST) {
$host = trim($_POST['host']);
$host_esc = escapeshellarg(trim($_POST['host']));
- if (!is_hostname($host) || is_ipaddr($host))
+ if (!is_hostname($host) || !is_ipaddr($host))
$input_errors[] = "Host must be a valid hostname or IP address.";
// Test resolution speed of each DNS server.
OpenPOWER on IntegriCloud