From 68b35b584536170759675204d738f9ead883a4f2 Mon Sep 17 00:00:00 2001 From: Cristian Rodriguez Date: Sun, 11 Apr 2010 23:48:52 +0200 Subject: [PATCH] [ticket/9829] Fix error in recaptcha validation. The recaptcha plugin falsely accepted error responses by recaptcha as valid solutions. PHPBB3-9829 --- phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php | 5 +---- 1 file changed, 1 insertion(+), 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']; } }