Re: Question on explode and join.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 13 Sep 2006, at 11:02 , Dave Goodchild wrote:

$_SESSION['profane'] = false;

   foreach ($_POST as $value) {
       foreach ($swearbox as $profanity) {
           if (preg_match("/$profanity/i", $value)) {
           $errors = true;
           $_SESSION['profane'] = true;
mail(TECHEMAIL, 'profane content attack attempt on DJST', "From: {$_SERVER['REMOTE_ADDRESS']} Time: " . date('d F Y G:i:s', time()- TIMEDIFF),
'whoops@xxxxxxxxxxxxxxxxxxxxxx');
           }
       }
   }

wouldn't that trigger on "assassination"<1> is "ass" was in $swearbox?

<1> twice

--
Do not meddle in the affairs of Dragons for you are crunchy and taste good with ketchup

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux