From f2114c86ed31970174636d270c1725c12e9dda8e Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 15 Jul 2008 22:15:05 +0000 Subject: Remove srcip check, will need to revise this a bit. --- packages/spamd_db.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'packages') 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"); -- cgit v1.2.3