diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-07 02:12:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-07 02:12:59 +0000 |
commit | 781fdb26eef75ca2b0dd60d996f5035d0f6ee7c1 (patch) | |
tree | 252299dd8f5e51db84d5e6a15a222729b3c2f538 | |
parent | 9f64b0d09640533d9d5c881170fd2e94e69af426 (diff) | |
download | pfsense-packages-781fdb26eef75ca2b0dd60d996f5035d0f6ee7c1.tar.gz pfsense-packages-781fdb26eef75ca2b0dd60d996f5035d0f6ee7c1.tar.bz2 pfsense-packages-781fdb26eef75ca2b0dd60d996f5035d0f6ee7c1.zip |
Write out c/r at end of line
-rw-r--r-- | packages/spamd_db_ext.php | 4 |
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); } |