From a0264aaa858111880e1ced809ffba496b3219d8d Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 9 Apr 2019 13:38:27 +0200 Subject: [PATCH] php7.2, count() issue in www/diag_dns.php for https://github.com/opnsense/core/issues/3400 --- src/www/diag_dns.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/www/diag_dns.php b/src/www/diag_dns.php index bbbb63711..f1ad775dd 100644 --- a/src/www/diag_dns.php +++ b/src/www/diag_dns.php @@ -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);