aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd_db_ext.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-07 02:12:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-07 02:12:59 +0000
commit781fdb26eef75ca2b0dd60d996f5035d0f6ee7c1 (patch)
tree252299dd8f5e51db84d5e6a15a222729b3c2f538 /packages/spamd_db_ext.php
parent9f64b0d09640533d9d5c881170fd2e94e69af426 (diff)
downloadpfsense-packages-781fdb26eef75ca2b0dd60d996f5035d0f6ee7c1.tar.gz
pfsense-packages-781fdb26eef75ca2b0dd60d996f5035d0f6ee7c1.tar.bz2
pfsense-packages-781fdb26eef75ca2b0dd60d996f5035d0f6ee7c1.zip
Write out c/r at end of line
Diffstat (limited to 'packages/spamd_db_ext.php')
-rw-r--r--packages/spamd_db_ext.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/spamd_db_ext.php b/packages/spamd_db_ext.php
index a4da79ab..9463ac8b 100644
--- a/packages/spamd_db_ext.php
+++ b/packages/spamd_db_ext.php
@@ -160,7 +160,7 @@ function basic_auth_prompt(){
function add_to_blacklist($srcip) {
$fd = fopen("/var/db/blacklist.txt", "a");
- fwrite($fd, $srcip);
+ fwrite($fd, "{$srcip}\n");
fclose($fd);
}
@@ -169,7 +169,7 @@ function delete_from_blacklist($srcip) {
$fd = fopen("/var/db/blacklist.txt", "w");
foreach($blacklist as $bl) {
if($blacklist <> $srcip)
- fwrite($fd, "{$srcip}\n";
+ fwrite($fd, "{$srcip}\n");
}
fclose($fd);
}