aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-15 22:15:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-15 22:15:05 +0000
commitf2114c86ed31970174636d270c1725c12e9dda8e (patch)
tree3d588d555235fa748c20a5100a4fd7cd9aa53af2
parenta1f55bfd1e6c354252d75ba4600d3fdc67491f19 (diff)
downloadpfsense-packages-f2114c86ed31970174636d270c1725c12e9dda8e.tar.gz
pfsense-packages-f2114c86ed31970174636d270c1725c12e9dda8e.tar.bz2
pfsense-packages-f2114c86ed31970174636d270c1725c12e9dda8e.zip
Remove srcip check, will need to revise this a bit.
-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");