com web/bugs: Annoying spam: include/functions.php
| From: | Rasmus Lerdorf | Date: | Wed, 09 May 2012 18:20:10 +0000 |
| Subject: | com web/bugs: Annoying spam: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13499@lists.php.net to get a copy of this message | ||
Commit: d358b33d19d8cb07f622c66ce074c63dbe1d1089
Author: Rasmus Lerdorf <rasmus@php.net> Wed, 9 May 2012 11:20:10 -0700
Parents: d32be4785328a32d3470ca6d31d9ccec80f867b7
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=d358b33d19d8cb07f622c66ce074c63dbe1d1089
Log:
Annoying spam
Changed paths:
M include/functions.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index cc62532..54b544b 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -259,7 +259,7 @@ function is_spam($string)
if (substr_count(strtolower($string), 'http://') > 5) {
return true;
}
- if
(preg_match("/(asian)|(spy)|(bdsm)|(massage)|(mortage)|(sex)(?<!OutOfBoundsEx(?=ception))|(11nong)|(oxycontin)|(distance-education)|(sismatech)|(justiceplan)|(prednisolone)|(baclofen)|(diflucan)|(unbra.se)|(objectis)|(angosso)|(colchicine)|(zovirax)/i",
$string)) {
+ if
(preg_match("/(asian)|(spy)|(bdsm)|(massage)|(mortage)|(sex)(?<!OutOfBoundsEx(?=ception))|(11nong)|(oxycontin)|(distance-education)|(sismatech)|(justiceplan)|(prednisolone)|(baclofen)|(diflucan)|(unbra.se)|(objectis)|(angosso)|(colchicine)|(zovirax)|(korsbest)|(coachbags)/i",
$string)) {
return true;
}
if (preg_match("~/Members/~", $string)) {