Hi,
 
It's been a long day, and my eyes are hurting. I had a bit of code, written
a few years ago now, which pulled a set of words from a database and looked
for any instances of those words in a string, doing a replace if it found
one. A simple profanity checker basically.
 
Can't get the code to work now, in CF8. Am I missing something obvious:
<cfset qGetProfanities =
application.forums.getProfanities(networkID=arguments.networkID)>

<cfloop query="qGetProfanities">

<cfset thread_text = ReplaceNoCase(form.thread_text,"
qGetProfanities.badword "," " &
RepeatString("*",Len(qGetProfanities.badword)) & " ","ALL")>

</cfloop>

The words just aren't being replaced.

 
Will


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302126
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to