Hrm.. I didn't see the post. Can you point to the direct link? So perhaps do a few cfifs and look for specific words and ignore the spaces or perhaps a replace and remove all the spaces before I check? That seems even more kludgy though..
On Tue, Dec 21, 2010 at 8:44 PM, Andrew Scott <[email protected]> wrote: > > I have seen this as well, and I am not sure but I am almost 100% in thinking > that the spaces aren't normal spaces so they will not make the condition > true. > > I have also blogged about this on my website as well. > > Regards, > Andrew Scott > http://www.andyscott.id.au/ > > >> -----Original Message----- >> From: Phillip Vector [mailto:[email protected]] >> Sent: Wednesday, 22 December 2010 3:34 PM >> To: cf-talk >> Subject: Exception.Message is not triggering cfif >> >> >> I keep getting this following error message.... >> >> struct >> Cause >> struct >> Message recaptcha: the verification service responded with error >> ''Input error: challenge: Error parsing captcha challenge value\n''. >> See http://recaptcha.net/apidocs/captcha/ for error meanings. >> RootCause >> struct >> Detail [empty string] >> >> Now, I know this is from spammers. Almost every email like this I get, > it's >> always from Russia or the Ukraine (while I would like to think my site has >> worldwide appeal, it doesn't). However, I have the following in my >> application.cfc (I run fusebox) as an error trapping routine. >> >> <cfif Exception.Message contains 'Error parsing captcha challenge value'> >> You appear to be a bot. >> <cfelse> >> [Send an email] >> </cfif> >> >> However, this isn't triggering. I've tried triggering this myself (wrong > words, >> blank, etc) and I can't get it to replicate the error. >> So I figured I'd kludge it. >> >> My question is.. Why isn't this getting picked up? Exception.Message would >> be equal to "recaptcha: the verification service responded with error > ''Input >> error: challenge: Error parsing captcha challenge value\n''. See >> http://recaptcha.net/apidocs/captcha/ for error meanings." I would think. > So >> why doesn't the "contains" work? >> >> Is there something I'm missing? I'm close to just only allowing american > IPs in >> the site, but I'd rather avoid that if possible. >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> ~~~~~~~~~~~| >> Order the Adobe Coldfusion Anthology now! >> http://www.amazon.com/Adobe-Coldfusion- >> Anthology/dp/1430272155/?tag=houseoffusion >> Archive: http://www.houseoffusion.com/groups/cf- >> talk/message.cfm/messageid:340196 >> Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm >> Unsubscribe: http://www.houseoffusion.com/groups/cf- >> talk/unsubscribe.cfm > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340198 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

