I'm using Captcha+Riddler, and it appears to be case sensitive.

Quick-fix...

I think it may be line 221 in captcha.module:
if($value == $_SESSION['captcha'][$seed]['value']) {

to something like:
if (! strcasecmp($value, $_SESSION['captcha'][$seed]['value'])) {

and it works for now, till I figure out how to call that function from Riddler instead of altering it in Captcha.

Comments

imerlin’s picture

Project: CAPTCHA Riddler » CAPTCHA
Version: 5.x-1.3 » 5.x-2.2

This fix is specific to the Captcha module. I'm not aware of any way to enforce this through Riddler except try to pre-validate the form before Captcha does, but that kind of defeats the purpose of using Captcha for this.

Unfortunately the only information I pass on from the Riddler module is the expected answer and right now, that is case sensitive.

I've forwarded the issue to the Captcha project, maybe there's a possibility of adding a case option to Captcha or a way for Captcha extensions to set it themselves.

robloach’s picture

Version: 5.x-2.2 » 5.x-3.x-dev
Status: Active » Closed (won't fix)

Sometimes you're not comparing strings there, and usually Captchas are case-sensitive. Captcha Riddler could, however, preprocess the validation to have complete control over how the validation goes over.