mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10170] Fix broken recaptcha verification host.
PHPBB3-10170
This commit is contained in:
parent
2c0c8a580f
commit
eded608a53
1 changed files with 7 additions and 2 deletions
|
@ -29,7 +29,12 @@ class phpbb_recaptcha extends phpbb_default_captcha
|
||||||
{
|
{
|
||||||
var $recaptcha_server = 'http://www.google.com/recaptcha/api';
|
var $recaptcha_server = 'http://www.google.com/recaptcha/api';
|
||||||
var $recaptcha_server_secure = 'https://www.google.com/recaptcha/api'; // class constants :(
|
var $recaptcha_server_secure = 'https://www.google.com/recaptcha/api'; // class constants :(
|
||||||
var $recaptcha_verify_server = 'http://www.google.com/recaptcha/api/verify';
|
|
||||||
|
// We are opening a socket to port 80 of this host and send
|
||||||
|
// the POST request asking for verification to the path specified here.
|
||||||
|
var $recaptcha_verify_server = 'www.google.com';
|
||||||
|
var $recaptcha_verify_path = '/recaptcha/api/verify';
|
||||||
|
|
||||||
var $challenge;
|
var $challenge;
|
||||||
var $response;
|
var $response;
|
||||||
|
|
||||||
|
@ -296,7 +301,7 @@ class phpbb_recaptcha extends phpbb_default_captcha
|
||||||
return $user->lang['RECAPTCHA_INCORRECT'];
|
return $user->lang['RECAPTCHA_INCORRECT'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$response = $this->_recaptcha_http_post($this->recaptcha_verify_server, '/verify',
|
$response = $this->_recaptcha_http_post($this->recaptcha_verify_server, $this->recaptcha_verify_path,
|
||||||
array(
|
array(
|
||||||
'privatekey' => $config['recaptcha_privkey'],
|
'privatekey' => $config['recaptcha_privkey'],
|
||||||
'remoteip' => $user->ip,
|
'remoteip' => $user->ip,
|
||||||
|
|
Loading…
Add table
Reference in a new issue