diff options
-rw-r--r-- | packages/spamd_db.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php index 22cdf786..82c8425b 100644 --- a/packages/spamd_db.php +++ b/packages/spamd_db.php @@ -184,7 +184,10 @@ if (typeof getURL == 'undefined') { <td class="list"></td> </tr> <?php - $pkgdb = split("\n", `/usr/local/sbin/spamdb`); + if($filter) + $pkgdb = split("\n", `/usr/local/sbin/spamdb | grep {$filter}`); + else + $pkgdb = split("\n", `/usr/local/sbin/spamdb`); $rows = 0; $lastseenip = ""; $srcip = "|"; |