aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-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);
}