aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-19 23:46:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-19 23:46:38 +0000
commiteee673cfa4b384ae6d92a76e6fbfeb96776f69da (patch)
tree29abe0e5a7e62d0a181f219d67f4c5253b20899c
parenta15db0bf957494a992dd9e05f998534a998e28f5 (diff)
downloadpfsense-packages-eee673cfa4b384ae6d92a76e6fbfeb96776f69da.tar.gz
pfsense-packages-eee673cfa4b384ae6d92a76e6fbfeb96776f69da.tar.bz2
pfsense-packages-eee673cfa4b384ae6d92a76e6fbfeb96776f69da.zip
Delete prior items before adding as trapped
-rw-r--r--packages/spamd_db.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php
index 930afb50..c613e9b5 100644
--- a/packages/spamd_db.php
+++ b/packages/spamd_db.php
@@ -57,6 +57,9 @@ if($_GET['action'] or $_POST['action']) {
$srcip = str_replace(" ","",$srcip);
/* execute spamdb command */
if($action == "whitelist") {
+ exec("/usr/local/sbin/spamdb -d {$srcip}");
+ exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -T");
+ exec("/usr/local/sbin/spamdb -d \"<{$srcip}>\" -t");
exec("echo spamdb -a {$srcip} > /tmp/tmp");
exec("/usr/local/sbin/spamdb -a {$srcip}");
} else if($action == "delete") {