diff options
author | bcyrill <cyrill@bannwart.info> | 2012-12-29 15:19:44 +0100 |
---|---|---|
committer | bcyrill <cyrill@bannwart.info> | 2012-12-29 15:19:44 +0100 |
commit | f92595dcc53dd639fa3c271bda14d037648d8464 (patch) | |
tree | 3e1737d4e71a269c0a01443f9a0f31f8ff50e991 /etc/inc/captiveportal.inc | |
parent | 0754d9b7248a0d1cf2cd932cf66a50c08f014f03 (diff) | |
download | pfsense-f92595dcc53dd639fa3c271bda14d037648d8464.zip pfsense-f92595dcc53dd639fa3c271bda14d037648d8464.tar.gz |
Fix: Check for the existence of the rules file
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 2 |
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; |