mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/9829] Fix error in recaptcha validation.
The recaptcha plugin falsely accepted error responses by recaptcha as valid solutions. PHPBB3-9829
This commit is contained in:
committed by
Andreas Fischer
parent
41245f9f7a
commit
68b35b5845
@@ -313,13 +313,10 @@ class phpbb_recaptcha extends phpbb_default_captcha
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
if ($answers[1] === 'incorrect-captcha-sol')
|
|
||||||
{
|
{
|
||||||
return $user->lang['RECAPTCHA_INCORRECT'];
|
return $user->lang['RECAPTCHA_INCORRECT'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encodes the given data into a query string format
|
* Encodes the given data into a query string format
|
||||||
|
Reference in New Issue
Block a user