diff options
author | Ermal <eri@pfsense.org> | 2013-11-21 21:18:00 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-11-21 21:18:00 +0000 |
commit | baec2b007fa963f9c047ef08b16abc92c571c407 (patch) | |
tree | 94d4ecc36df550dbcbade2518b33fc5211a3f3f8 /usr/local/www/services_captiveportal_hostname_edit.php | |
parent | fc5a4f3c22bc0cfc44a8d0e74a1a5fda12ba9f8b (diff) | |
download | pfsense-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-x | usr/local/www/services_captiveportal_hostname_edit.php | 3 |
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}"); |