Re: svn: /web/php-bugs/trunk/include/ functions.inc

From: Date: Wed, 17 Feb 2010 10:36:07 +0000
Subject: Re: svn: /web/php-bugs/trunk/include/ functions.inc
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-7333@lists.php.net to get a copy of this message
On 17 February 2010 06:41, Rasmus Lerdorf <rasmus@php.net> wrote: > rasmus                                   Wed, 17 Feb 2010 06:41:00 +0000 > > Revision: > http://svn.php.net/viewvc?view=revision&revision=295197 > > Log: > Add a few more spam keywords > > Changed paths: >    U   web/php-bugs/trunk/include/functions.inc > > Modified: web/php-bugs/trunk/include/functions.inc > =================================================================== > --- web/php-bugs/trunk/include/functions.inc    2010-02-17 06:32:47 UTC (rev 295196) > +++ web/php-bugs/trunk/include/functions.inc    2010-02-17 06:41:00 UTC (rev 295197) > @@ -19,7 +19,7 @@ >        if (substr_count(strtolower($string), > 'http://') > 5) { >                return true; >        } > -       if > (preg_match("/(asian)|(spy)|(bdsm)|(massage)|(mortage)|(sex)|(11nong)/i", $string)) { > +       if > (preg_match("/(asian)|(spy)|(bdsm)|(massage)|(mortage)|(sex)|(11nong)|(oxycontin)|(distance-education)/i", > $string)) { >                return true; >        } >        return false; > > > -- > PHP Webmaster List Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Minor optimization. No capturing is required. if (preg_match("/asian|spy|bdsm|massage|mortage|sex|11nong|oxycontin|distance-education/i", $string)) { -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling

« previous php.webmaster (#7333) next »