diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-31 19:04:03 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-31 19:04:03 -0200 |
commit | 9d29322dc8afaf713b254797c6a7a490dd8063cc (patch) | |
tree | 70bec4818d15de51847fd5e73f596124c9ce442d /src/usr/local/www/services_captiveportal.php | |
parent | 0b8b506957010e9bef3457e6306bf990bd7aeb86 (diff) | |
download | pfsense-9d29322dc8afaf713b254797c6a7a490dd8063cc.zip pfsense-9d29322dc8afaf713b254797c6a7a490dd8063cc.tar.gz |
Do not attempt to remove interfaces from CP zone, captiveportal_configure_zone() will take care of it
Diffstat (limited to 'src/usr/local/www/services_captiveportal.php')
-rw-r--r-- | src/usr/local/www/services_captiveportal.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php index 5887bd5..cdfbebd 100644 --- a/src/usr/local/www/services_captiveportal.php +++ b/src/usr/local/www/services_captiveportal.php @@ -341,7 +341,6 @@ if ($_POST) { $cpzoneid = $newcp['zoneid']; } - $oldifaces = explode(",", $newcp['interface']); if (is_array($_POST['cinterface'])) { $newcp['interface'] = implode(",", $_POST['cinterface']); } @@ -449,19 +448,8 @@ if ($_POST) { write_config(); - /* Clear up unselected interfaces */ - $newifaces = explode(",", $newcp['interface']); - $toremove = array_diff($oldifaces, $newifaces); - - if (!empty($toremove)) { - foreach ($toremove as $removeif) { - $removeif = get_real_interface($removeif); - mwexec("/sbin/ipfw zone {$cpzoneid} mdel {$removeif}"); - } - } - captiveportal_configure_zone($newcp); - unset($newcp, $newifaces, $toremove); + unset($newcp); filter_configure(); header("Location: services_captiveportal_zones.php"); exit; |