Commit 4e881f57 authored by MykolaVeriga's avatar MykolaVeriga Committed by Fabiano Sant'Ana
Browse files

Issue #3061067 by Mykola Veriga, ewaters5, Steven Buteneers: Captcha-answer=hash value?

parent c323d5ab
......@@ -99,7 +99,9 @@ class Captcha extends FormElement implements ContainerFactoryPluginInterface {
// Get the form ID of the form we are currently processing (which is not
// necessary the same form that is submitted (if any).
$this_form_id = $complete_form['form_id']['#value'];
$this_form_id = isset($complete_form['form_id']['#value']) ?
preg_replace("/[^a-z0-9_]/", "", (string) $complete_form['form_id']['#value'])
// Get the CAPTCHA session ID.
// If there is a submitted form: try to retrieve and reuse the
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment