Problem/Motivation

An answer should not be rejected because of invisible whitespace; this can be very confusing and increase the chance that humans do not get the correct answer.

Probably separately, i think there also should be an option to strip punctuation. I can work on both of these if that is of interest.

Proposed resolution

Trim leading and trailing whitespace from the captcha response (the same as is done for captcha solutions!) before comparing to captcha solutions. Simply adding this at say line 93 of riddler.module:

  $captcha_response = trim($captcha_response);

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork riddler-3591653

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mlncn created an issue. See original summary.

mlncn’s picture

Issue summary: View changes

mlncn’s picture

Status: Active » Needs review