Commit:    50136fe0aeea66ad187b408a4c4237fed938c42e
Author:    Peter Cowburn <pcowb...@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) {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to