summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-12-28 14:16:01 +0000
committerErmal <eri@pfsense.org>2012-12-28 14:16:01 +0000
commit43affef2c1bb3728b5df3687f3ea8074d88292cc (patch)
tree182f783291e443b90164a31993f9901388bcf0f8 /etc
parentac94ebd828f33f09f07ca1a5ffa24ffc0c6db2f4 (diff)
downloadpfsense-43affef2c1bb3728b5df3687f3ea8074d88292cc.zip
pfsense-43affef2c1bb3728b5df3687f3ea8074d88292cc.tar.gz
Use file_put_contents for simplicity and concistency
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 6e0da37..6bd77d6 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -336,12 +336,8 @@ function filter_configure_sync($delete_states_if_needed = true) {
layer7_start_l7daemon();
if(!empty($filterdns)) {
- $filterdnsfd = fopen("{$g['varetc_path']}/filterdns.conf", "w");
- if($filterdnsfd) {
- fwrite($filterdnsfd, $filterdns);
- fclose($filterdnsfd);
- }
killbypid("{$g['tmp_path']}/filterdns.pid");
+ @file_put_contents("{$g['varetc_path']}/filterdns.conf", $filterdns);
/*
* FilterDNS has three debugging levels. The default choosen is 1.
* Availabe are level 2 and greater then 2.
OpenPOWER on IntegriCloud