diff options
author | Cristian Rodriguez <yo@cristianrodriguez.net> | 2010-04-11 23:48:52 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-09-19 16:29:12 +0200 |
commit | 68b35b584536170759675204d738f9ead883a4f2 (patch) | |
tree | ed52dbabe36b015d7cd1db48dc3a134f36ca3beb /phpBB/includes/captcha/plugins | |
parent | 41245f9f7ac1f588351ddaa8128b499503416f54 (diff) | |
download | forums-68b35b584536170759675204d738f9ead883a4f2.tar forums-68b35b584536170759675204d738f9ead883a4f2.tar.gz forums-68b35b584536170759675204d738f9ead883a4f2.tar.bz2 forums-68b35b584536170759675204d738f9ead883a4f2.tar.xz forums-68b35b584536170759675204d738f9ead883a4f2.zip |
[ticket/9829] Fix error in recaptcha validation.
The recaptcha plugin falsely accepted error responses by recaptcha as valid
solutions.
PHPBB3-9829
Diffstat (limited to 'phpBB/includes/captcha/plugins')
-rw-r--r-- | phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php index 0f0bfc4156..ea171dbe2c 100644 --- a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php +++ b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php @@ -314,10 +314,7 @@ class phpbb_recaptcha extends phpbb_default_captcha } else { - if ($answers[1] === 'incorrect-captcha-sol') - { - return $user->lang['RECAPTCHA_INCORRECT']; - } + return $user->lang['RECAPTCHA_INCORRECT']; } } |