summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-13 19:49:17 +0000
committerErmal <eri@pfsense.org>2013-02-13 19:49:33 +0000
commit11b26a274d2cdd24b7e5a536c16b103fe18a3986 (patch)
treee01a1f10b27c400c59d919c09b4a450b4de8fd10 /usr
parent30b32e73814f52b5f997869246aff321ced56d44 (diff)
downloadpfsense-11b26a274d2cdd24b7e5a536c16b103fe18a3986.zip
pfsense-11b26a274d2cdd24b7e5a536c16b103fe18a3986.tar.gz
unset var so the test works correctly
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_captiveportal_ip_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_ip_edit.php b/usr/local/www/services_captiveportal_ip_edit.php
index 57201e1..9aadb9e 100755
--- a/usr/local/www/services_captiveportal_ip_edit.php
+++ b/usr/local/www/services_captiveportal_ip_edit.php
@@ -142,11 +142,12 @@ if ($_POST) {
$a_allowedips[] = $ip;
}
allowedips_sort();
-
+
write_config();
if (isset($a_cp[$cpzone]['enable']) && is_module_loaded("ipfw.ko")) {
$rules = "";
+ unset($ipfw);
if (isset($oldip) && isset($oldmask)) {
$ipfw = pfSense_ipfw_getTablestats($cpzone, 3, $oldip, $oldmask);
$rules .= "table 3 delete {$oldip}/{$oldmask}\n";
OpenPOWER on IntegriCloud