com web/bugs: - Added spam check on bug report creation: www/report.php

From: Date: Fri, 07 Sep 2012 16:56:36 +0000
Subject: com web/bugs: - Added spam check on bug report creation: www/report.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-14654@lists.php.net to get a copy of this message
Commit: ae5c4eff12eef129ec2ef1447f201af54be6f402 Author: Felipe Pena <felipensp@gmail.com> Fri, 7 Sep 2012 13:56:36 -0300 Parents: 67a3de396e19ce5a9e0a62799f3b718e6cbb4da5 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=ae5c4eff12eef129ec2ef1447f201af54be6f402 Log: - Added spam check on bug report creation Changed paths: M www/report.php Diff: diff --git a/www/report.php b/www/report.php index df2f9c7..562c87c 100644 --- a/www/report.php +++ b/www/report.php @@ -36,6 +36,11 @@ if (isset($_POST['in'])) { if (!isset($_SESSION['answer']) || $_POST['captcha'] != $_SESSION['answer']) { $errors[] = 'Incorrect Captcha'; } + if (is_spam($_POST['in']['ldesc']) || + is_spam($_POST['in']['expres']) || + is_spam($_POST['in']['repcode'])) { + $errors[] = 'Spam detected'; + } } // Set auto-generated password when not supplied or logged in

« previous php.webmaster (#14654) next »