Commit 4e881f57 authored by Mykola Veriga's avatar Mykola Veriga Committed by wundo

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'])
: NULL;
// Get the CAPTCHA session ID.
// If there is a submitted form: try to retrieve and reuse the
......
Markdown is supported
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