com web/bugs: Check comment email addresses against spam word list: www/bug.php
| From: | Peter Cowburn | Date: | Fri, 14 Oct 2016 09:50:17 +0000 |
| Subject: | com web/bugs: Check comment email addresses against spam word list: www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-25241@lists.php.net to get a copy of this message | ||
Commit: 50136fe0aeea66ad187b408a4c4237fed938c42e
Author: Peter Cowburn <pcowburn@akamai.com> Fri, 14 Oct 2016 10:50:17 +0100
Parents: bdb7b33eb9ba0954b366e434854168b85ad42b54
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=50136fe0aeea66ad187b408a4c4237fed938c42e
Log:
Check comment email addresses against spam word list
Changed paths:
M www/bug.php
Diff:
diff --git a/www/bug.php b/www/bug.php
index af05707..c3635d2 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -211,6 +211,10 @@ if (isset($_POST['ncomment']) &&
!isset($_POST['preview']) && $edit == 3) {
$errors[] = "Please do not SPAM our bug system.";
}
+ if (is_spam($_POST['in']['commentemail'])) {
+ $errors[] = "Please do not SPAM our bug system.";
+ }
+
if (!$errors) {
do {
if (!$logged_in) {