View Single Post
  #6 (permalink)  
Old 01-14-2009, 01:47 PM
joncase joncase is offline
WebProWorld Member
 
Join Date: Jan 2005
Posts: 52
joncase RepRank 1
Default Re: Need non-FrontPage FP form handling app

One of the changes I made to the script, af.cgi, mentioned above in the alien form post stopped spammers using textareas to send spam using html code.

I changed line 234
From:
if ($prefs =~ /w/i and $value =~ /\W/) { push @only_words, $key }
To:
if ($prefs =~ /w/i and $value =~ /[^A-Za-z0-9.,;"'\s\&\#\$\@\-]/) { push @only_words, $key }

Then made sure my textareas were named starting with the w_ prefix.
__________________
Jon Case
Small Business Website Design
Reply With Quote