mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Init dnsmasq arrays before referencing. Fixes #8967
This commit is contained in:
parent
bb7cabdb20
commit
651b4dcb4e
@ -93,6 +93,7 @@ if (!is_array($config['dnsmasq']['domainoverrides'])) {
|
||||
$config['dnsmasq']['domainoverrides'] = array();
|
||||
}
|
||||
|
||||
init_config_arr(array('dnsmasq'' ,hosts'));
|
||||
$a_hosts = &$config['dnsmasq']['hosts'];
|
||||
|
||||
// Add a temporary index so we don't lose the order after sorting
|
||||
@ -102,6 +103,7 @@ for ($idx=0; $idx<count($a_hosts); $idx++) {
|
||||
|
||||
hosts_sort();
|
||||
|
||||
init_config_arr(array('dnsmasq', 'domainoverrides'));
|
||||
$a_domainOverrides = &$config['dnsmasq']['domainoverrides'];
|
||||
|
||||
// Add a temporary index so we don't lose the order after sorting
|
||||
|
||||
@ -37,6 +37,7 @@ if (!is_array($config['dnsmasq']['domainoverrides'])) {
|
||||
$config['dnsmasq']['domainoverrides'] = array();
|
||||
}
|
||||
|
||||
init_config_arr(array('dnsmasq', 'domainoverrides'));
|
||||
$a_domainOverrides = &$config['dnsmasq']['domainoverrides'];
|
||||
|
||||
if (is_numericint($_REQUEST['id'])) {
|
||||
|
||||
@ -37,6 +37,7 @@ if (!is_array($config['dnsmasq']['hosts'])) {
|
||||
$config['dnsmasq']['hosts'] = array();
|
||||
}
|
||||
|
||||
init_config_arr(array('dnsmasq', 'hosts'));
|
||||
$a_hosts = &$config['dnsmasq']['hosts'];
|
||||
|
||||
if (is_numericint($_REQUEST['id'])) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user