summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-12-19 22:18:39 +0000
committerErmal <eri@pfsense.org>2012-12-19 22:18:39 +0000
commitb273dd26de42ef9c004297ae8c2477d81dfb4765 (patch)
tree877022e348f787be5ea3bdedbf765b09d245b212 /etc/inc/captiveportal.inc
parentfe7e987e36951d4a96640ba2790c21911e21b957 (diff)
downloadpfsense-b273dd26de42ef9c004297ae8c2477d81dfb4765.zip
pfsense-b273dd26de42ef9c004297ae8c2477d81dfb4765.tar.gz
Restore needed code
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 25cea38..e40e368 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1371,7 +1371,11 @@ function captiveportal_free_dn_ruleno($ruleno) {
}
function captiveportal_get_dn_passthru_ruleno($value) {
- global $config, $g;
+ global $config, $g, $cpzone;
+
+ $cpcfg = $config['captiveportal'][$cpzone];
+ if(!isset($cpcfg['enable']))
+ return NULL;
$cpruleslck = lock("captiveportalrulesdn", LOCK_EX);
if (file_exists("{$g['vardb_path']}/captiveportaldn.rules")) {
OpenPOWER on IntegriCloud