com web/bugs: Addresses bug #64929.: include/functions.php
| From: | Daniel P. Brown | Date: | Wed, 05 Jun 2013 16:15:58 +0000 |
| Subject: | com web/bugs: Addresses bug #64929.: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15957@lists.php.net to get a copy of this message | ||
Commit: fa94d93274cfe4f91c08a395f723adca63763531
Author: danbrown <danbrown@php.net> Wed, 5 Jun 2013 12:15:58 -0400
Parents: 6b52bd6c283f369082c81cb6641a0642a5501802
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=fa94d93274cfe4f91c08a395f723adca63763531
Log:
Addresses bug #64929.
Bugs:
https://bugs.php.net/64929
Changed paths:
M include/functions.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index 0067ff5..e7da000 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -266,12 +266,11 @@ function is_spam($string)
}
$keywords = array(
- 'asian',
'spy',
'bdsm',
'massage',
'mortage',
- 'sex(?<!OutOfBoundsEx(?=ception))',
+ 'sex',
'11nong',
'oxycontin',
'distance-education',
@@ -297,9 +296,10 @@ function is_spam($string)
'partydressuk',
'leslunettesdesoleil',
'PaulRGuthrie',
+ '[a-z]*?fuck[a-z]*?',
);
- if (preg_match('/('. implode('|', $keywords) . ')/i', $string)) {
+ if (preg_match('/\b('. implode('|', $keywords) . ')\b/i', $string))
{
return true;
}