summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_dns.php
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-12-11 18:46:01 -0500
committerChris Buechler <cmb@pfsense.org>2009-12-11 18:46:01 -0500
commitc1aa682e6d5b0b22080bee4eb33459e4b8059d20 (patch)
tree2eacaa90a8d2e6a093fe416444180f10139c1383 /usr/local/www/diag_dns.php
parente8ce1bd1079458200a41f13acd085a262ed54225 (diff)
downloadpfsense-c1aa682e6d5b0b22080bee4eb33459e4b8059d20.zip
pfsense-c1aa682e6d5b0b22080bee4eb33459e4b8059d20.tar.gz
really 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 8b114e4..abdeea3 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