php7.2, count() issue in www/diag_dns.php for https://github.com/opnsense/core/issues/3400

This commit is contained in:
Ad Schellevis 2019-04-09 13:38:27 +02:00
parent fba5738048
commit a0264aaa85

View File

@ -32,6 +32,7 @@ require_once("guiconfig.inc");
$resolved = array();
$dns_speeds = array();
if (!empty($_REQUEST['host'])) {
$input_errors = array();
$host = trim($_REQUEST['host'], " \t\n\r\0\x0B[];\"'");
$host_esc = escapeshellarg($host);