aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/spamd_db.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php
index 50ddac0f..17ce2a9f 100644
--- a/packages/spamd_db.php
+++ b/packages/spamd_db.php
@@ -62,10 +62,6 @@ if($_GET['action'] or $_POST['action']) {
$srcip = escapeshellarg($srcip);
/* execute spamdb command */
if($action == "'whitelist'") {
- if(!is_ipaddr($srcip)) {
- echo "Invalid IP address entered. Please correct the entry and try again.";
- return;
- }
exec("/usr/local/sbin/spamdb -d {$srcip}");
exec("/usr/local/sbin/spamdb -d \"{$srcip}\" -T");
exec("/usr/local/sbin/spamdb -d \"{$srcip}\" -t");