Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners Cgi > Re: How to dete...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 9 Topic 1427 of 1496
Post > Topic >>

Re: How to detect if a text body contains forbidden words

by bo.berglund@[EMAIL PROTECTED] (Bo Berglund) Nov 20, 2007 at 10:15 PM

On Tue, 20 Nov 2007 19:01:08 +0100, Bo Berglund
<bo.berglund@[EMAIL PROTECTED]
> wrote:

>>
>>sub spam_reject {
>>  if ($CONFIG{'Feedback'} =~  /href=|http:/i ) #i = ignore case
>>  {
>>      # reject code goes here
>>      push(@[EMAIL PROTECTED]
'*SPAM*');
>>  }
>>
>>  if (@[EMAIL PROTECTED]
) {
>>      &error('spam_contents', @[EMAIL PROTECTED]
);
>>  }
>>
>>
>>Do you think that this would work?
>>
>
>I tested it now but it did not work, I got the email out anyway....
>What did I do wrong in the syntax above?
>

Turns out that the Feedback is not in the $CONFIG array, by changing
$CONFIG to $FORM it worked!

Thanks again for pointing me in the right direction.

Bo Berglund
 




 9 Posts in Topic:
How to detect if a text body contains forbidden words
bo.berglund@[EMAIL PROTEC  2007-11-20 07:25:11 
Re: How to detect if a text body contains forbidden words
rcook@[EMAIL PROTECTED]   2007-11-20 19:58:50 
Re: How to detect if a text body contains forbidden words
lhernsen1015@[EMAIL PROTE  2007-11-20 08:25:15 
Re: How to detect if a text body contains forbidden words
bo.berglund@[EMAIL PROTEC  2007-11-20 18:39:25 
Re: How to detect if a text body contains forbidden words
bo.berglund@[EMAIL PROTEC  2007-11-20 19:01:08 
Re: How to detect if a text body contains forbidden words
bo.berglund@[EMAIL PROTEC  2007-11-20 22:15:33 
Re: How to detect if a text body contains forbidden words
bo.berglund@[EMAIL PROTEC  2007-11-20 18:45:10 
Re: How to detect if a text body contains forbidden words
noreply@[EMAIL PROTECTED]  2007-11-20 20:03:38 
Re: How to detect if a text body contains forbidden words
bo.berglund@[EMAIL PROTEC  2007-11-20 20:42:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 11:52:23 CST 2008.