Commit: fa94d93274cfe4f91c08a395f723adca63763531 Author: danbrown <[email protected]> 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; } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
