Commit 27c8d428 authored by id.aleks's avatar id.aleks Committed by wundo

Issue #2874151 by id.aleks, Chris Matthews: Captcha + Panels + Page Manager +...

Issue #2874151 by id.aleks, Chris Matthews: Captcha + Panels + Page Manager + Webform : The answer you entered for the CAPTCHA was not correct.
parent 4e881f57
......@@ -388,7 +388,7 @@ function _captcha_get_posted_captcha_info(array $element, FormStateInterface $fo
// we should be extra cautious and filter this data.
$input = &$form_state->getUserInput();
$posted_form_id = isset($input['form_id']) ?
preg_replace("/[^a-z0-9_]/", "", (string) $input['form_id'])
preg_replace("/[^a-z0-9_-]/", "", (string) $input['form_id'])
: NULL;
$posted_captcha_sid = isset($input['captcha_sid']) ?
(int) $input['captcha_sid']
......
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