Skip to content

Commit

Permalink
Bridge interface input validation fix. Issue #12866
Browse files Browse the repository at this point in the history
  • Loading branch information
vktg committed Feb 24, 2022
1 parent c2bb955 commit 6739d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/local/www/interfaces_bridge_edit.php
Expand Up @@ -187,7 +187,7 @@ function is_aoadv_used($pconfig) {
if (is_array($_POST['members']) && is_array($config['captiveportal'])) {
foreach ($_POST['members'] as $member) {
foreach ($config['captiveportal'] as $cp) {
if (in_array($member, explode(',', $cp['interface']))) {
if (isset($cp['enable']) && in_array($member, explode(',', $cp['interface']))) {
$input_errors[] = sprintf(gettext('The interface (%s) is part of ' .
'the Captive Portal and cannot be part of the bridge. ' .
'Remove the interface to continue.'), $ifacelist[$cpint]);
Expand Down

0 comments on commit 6739d00

Please sign in to comment.