mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
[ticket/17414] Change handling of validate to new logic
PHPBB-17414
This commit is contained in:
@@ -1210,15 +1210,9 @@ if ($submit || $preview || $refresh)
|
||||
|
||||
if ($config['enable_post_confirm'] && !$user->data['is_registered'] && in_array($mode, array('quote', 'post', 'reply')))
|
||||
{
|
||||
$captcha_data = array(
|
||||
'message' => $request->variable('message', '', true),
|
||||
'subject' => $request->variable('subject', '', true),
|
||||
'username' => $request->variable('username', '', true),
|
||||
);
|
||||
$vc_response = $captcha->validate($captcha_data);
|
||||
if ($vc_response)
|
||||
if ($captcha->validate() !== true)
|
||||
{
|
||||
$error[] = $vc_response;
|
||||
$error[] = $captcha->get_error();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user