summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-13 18:56:42 +0000
committerErmal <eri@pfsense.org>2013-02-13 18:56:42 +0000
commit837a35364708ca8c9e952d3321f353049a0dc57e (patch)
tree8ade6ccea183227fd9cbd1966bd1686a33d5d53f /usr/local/www
parent13e64b47aa969699c9d5a1fab5180925ac85ebe9 (diff)
downloadpfsense-837a35364708ca8c9e952d3321f353049a0dc57e.zip
pfsense-837a35364708ca8c9e952d3321f353049a0dc57e.tar.gz
Properly configure allowed hostnames
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/services_captiveportal_hostname_edit.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/services_captiveportal_hostname_edit.php b/usr/local/www/services_captiveportal_hostname_edit.php
index 5be6aa1..5fd6168 100755
--- a/usr/local/www/services_captiveportal_hostname_edit.php
+++ b/usr/local/www/services_captiveportal_hostname_edit.php
@@ -138,8 +138,10 @@ if ($_POST) {
write_config();
- captiveportal_allowedip_configure_entry($ip, true);
- captiveportal_allowedhostname_configure();
+ $rules = captiveportal_allowedhostname_configure();
+ @file_put_contents("{$g['tmp_path']}/hostname_rules", $rules);
+ mwexec("/sbin/ipfw -x {$cpzone} {$g['tmp_path']}/hostname_rules");
+ unset($rules);
header("Location: services_captiveportal_hostname.php?zone={$cpzone}");
exit;
OpenPOWER on IntegriCloud