diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-12-11 18:26:24 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-12-11 18:26:24 -0500 |
commit | e8ce1bd1079458200a41f13acd085a262ed54225 (patch) | |
tree | 06c40ab426ec5c87de96ee9d98bdeaaaaf191969 /usr/local/www/diag_dns.php | |
parent | e4e3f16eb4edb49f509357b85224cdf329a0835c (diff) | |
download | pfsense-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.php | 2 |
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. |