summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2012-12-29 15:19:44 +0100
committerbcyrill <cyrill@bannwart.info>2012-12-29 15:19:44 +0100
commitf92595dcc53dd639fa3c271bda14d037648d8464 (patch)
tree3e1737d4e71a269c0a01443f9a0f31f8ff50e991 /etc
parent0754d9b7248a0d1cf2cd932cf66a50c08f014f03 (diff)
downloadpfsense-f92595dcc53dd639fa3c271bda14d037648d8464.zip
pfsense-f92595dcc53dd639fa3c271bda14d037648d8464.tar.gz
Fix: Check for the existence of the rules file
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index a38435c..4480cbe 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -1361,7 +1361,7 @@ function captiveportal_free_dn_ruleno($ruleno) {
global $config, $g;
$cpruleslck = lock("captiveportalrulesdn", LOCK_EX);
- if (file_exists("{$g['vardb_path']}/captiveportal_{$cpzone}.rules")) {
+ if (file_exists("{$g['vardb_path']}/captiveportaldn.rules")) {
$rules = unserialize(file_get_contents("{$g['vardb_path']}/captiveportaldn.rules"));
$rules[$ruleno] = false;
$rules[++$ruleno] = false;
OpenPOWER on IntegriCloud