summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_hostname_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-11-21 21:18:00 +0000
committerErmal <eri@pfsense.org>2013-11-21 21:18:00 +0000
commitbaec2b007fa963f9c047ef08b16abc92c571c407 (patch)
tree94d4ecc36df550dbcbade2518b33fc5211a3f3f8 /usr/local/www/services_captiveportal_hostname_edit.php
parentfc5a4f3c22bc0cfc44a8d0e74a1a5fda12ba9f8b (diff)
downloadpfsense-baec2b007fa963f9c047ef08b16abc92c571c407.zip
pfsense-baec2b007fa963f9c047ef08b16abc92c571c407.tar.gz
Properly create zones for the CP with the new command arguments and properly invoke ipfw for applying rules and other configuration options.
Diffstat (limited to 'usr/local/www/services_captiveportal_hostname_edit.php')
-rwxr-xr-xusr/local/www/services_captiveportal_hostname_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_hostname_edit.php b/usr/local/www/services_captiveportal_hostname_edit.php
index b42aa78..cf01f18 100755
--- a/usr/local/www/services_captiveportal_hostname_edit.php
+++ b/usr/local/www/services_captiveportal_hostname_edit.php
@@ -140,7 +140,8 @@ if ($_POST) {
$rules = captiveportal_allowedhostname_configure();
@file_put_contents("{$g['tmp_path']}/hostname_rules", $rules);
- mwexec("/sbin/ipfw -x {$cpzone} {$g['tmp_path']}/hostname_rules");
+ $cpzoneid = $a_cp[$cpzone]['zoneid'];
+ mwexec("/sbin/ipfw -x {$cpzoneid} {$g['tmp_path']}/hostname_rules");
unset($rules);
header("Location: services_captiveportal_hostname.php?zone={$cpzone}");
OpenPOWER on IntegriCloud