After e.g. previewing a comment or a giving a wrong captcha answer, the captcha answer text field of the new form still contains the answer on the previous captcha challenge (default drupal behaviour to keep form values). This is in the context of captcha unneeded (and maybe even a usability issue).

This simple patch empties the captcha answer text field before rendering.

CommentFileSizeAuthor
empty_captcha_answer_field.patch1.15 KBsoxofaan

Comments

robloach’s picture

Status: Reviewed & tested by the community » Fixed

Reviewed, tested and works. 76991

Anonymous’s picture

Status: Fixed » Closed (fixed)