diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-03-20 17:43:52 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-03-20 17:43:52 -0300 |
commit | 3c555e74abb2833a61bda5525a16a261c5bb5ab4 (patch) | |
tree | 6af4521cff00de626029b81bf244ab7e8566c6fc /config/pfblockerng/pfblockerng.inc | |
parent | e35b8aaaf19f0ddbe428e170c149f85ce2fcbb0f (diff) | |
parent | ea53e4c22f99ac563c708b8afcf66138d545f2d6 (diff) | |
download | pfsense-packages-3c555e74abb2833a61bda5525a16a261c5bb5ab4.tar.gz pfsense-packages-3c555e74abb2833a61bda5525a16a261c5bb5ab4.tar.bz2 pfsense-packages-3c555e74abb2833a61bda5525a16a261c5bb5ab4.zip |
Merge pull request #837 from BBcan177/pfBlockerNG_03_17_15-1
Diffstat (limited to 'config/pfblockerng/pfblockerng.inc')
-rw-r--r-- | config/pfblockerng/pfblockerng.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/pfblockerng/pfblockerng.inc b/config/pfblockerng/pfblockerng.inc index 6ee9592a..1a1c87a2 100644 --- a/config/pfblockerng/pfblockerng.inc +++ b/config/pfblockerng/pfblockerng.inc @@ -3,7 +3,7 @@ pfBlockerNG.inc pfBlockerNG - Copyright (C) 2014 BBcan177@gmail.com + Copyright (C) 2015 BBcan177@gmail.com All rights reserved. part of the Postfix package for pfSense @@ -226,8 +226,11 @@ function pfb_create_suppression_file() { if ($pfb['found']) { $pfb_suppress = str_replace(" ", "\n", $config['aliases']['alias'][$pfb_id]['address']); - if (!empty($pfb_suppress)) + if (!empty($pfb_suppress)) { @file_put_contents("{$pfb['supptxt']}",$pfb_suppress, LOCK_EX); + } else { + unlink_if_exists("{$pfb['supptxt']}"); + } } else { # Delete Suppression File if Alias is Empty. unlink_if_exists("{$pfb['supptxt']}"); |