mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
dhcp: lock access like menu decides to show entry; closes #4406
This commit is contained in:
parent
eb429363fa
commit
0f55d6e0a5
@ -101,7 +101,9 @@ $config_copy_fieldsnames = array('enable', 'staticarp', 'failover_peerip', 'fail
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
// handle identifiers and action
|
||||
if (!empty($_GET['if']) && !empty($config['interfaces'][$_GET['if']])) {
|
||||
if (!empty($_GET['if']) && !empty($config['interfaces'][$_GET['if']]) &&
|
||||
isset($config['interfaces'][$_GET['if']]['enable']) &&
|
||||
is_ipaddr($config['interfaces'][$_GET['if']]['ipaddr'])) {
|
||||
$if = $_GET['if'];
|
||||
if (isset($_GET['pool']) && !empty($config['dhcpd'][$_GET['if']]['pool'][$_GET['pool']])) {
|
||||
$pool = $_GET['pool'];
|
||||
|
||||
@ -44,7 +44,10 @@ function reconfigure_dhcpd()
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
// handle identifiers and action
|
||||
if (!empty($_GET['if']) && !empty($config['interfaces'][$_GET['if']])) {
|
||||
if (!empty($_GET['if']) && !empty($config['interfaces'][$_GET['if']]) &&
|
||||
isset($config['interfaces'][$_GET['if']]['enable']) &&
|
||||
(is_ipaddr($config['interfaces'][$_GET['if']]['ipaddrv6']) ||
|
||||
!empty($config['interfaces'][$_GET['if']]['dhcpd6track6allowoverride']))) {
|
||||
$if = $_GET['if'];
|
||||
} else {
|
||||
/* if no interface is provided this invoke is invalid */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user