summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@netgate.com>2019-05-22 14:05:37 -0400
committerjim-p <jimp@netgate.com>2019-05-22 14:06:07 -0400
commitac0bb6bc8e65fcc600c69684d928eb0d05d61b0e (patch)
tree46a0d61247f96b8043f8f6bb2461bad1d6829557
parentb9ed452dbba4689e6280efa7f503e30809a3d8e4 (diff)
downloadpfsense-ac0bb6bc8e65fcc600c69684d928eb0d05d61b0e.zip
pfsense-ac0bb6bc8e65fcc600c69684d928eb0d05d61b0e.tar.gz
Use correct variable in IP address validation check for DNS. Fixes #9543
(cherry picked from commit 912562c4d76e9b629e99d44c56b363147d9ded0d)
-rw-r--r--src/usr/local/www/diag_dns.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_dns.php b/src/usr/local/www/diag_dns.php
index 33338f8..703d115 100644
--- a/src/usr/local/www/diag_dns.php
+++ b/src/usr/local/www/diag_dns.php
@@ -133,7 +133,7 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
- if (!is_hostname(rtrim($host, '.')) && !is_ipaddr($checkhost)) {
+ if (!is_hostname(rtrim($host, '.')) && !is_ipaddr($host)) {
$input_errors[] = gettext("Host must be a valid hostname or IP address.");
} else {
// Test resolution speed of each DNS server.
OpenPOWER on IntegriCloud