aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2011-05-11 03:23:31 +0200
committerAndreas Fischer <bantu@phpbb.com>2011-05-11 03:26:36 +0200
commiteded608a53b3882a7a42bddf6b1c9f479c2b0304 (patch)
tree7d2cb84d10588e1542016eab9070b2938be8cccc /phpBB/includes
parent2c0c8a580f23225d6757ba49c70c01b29447fb0a (diff)
downloadforums-eded608a53b3882a7a42bddf6b1c9f479c2b0304.tar
forums-eded608a53b3882a7a42bddf6b1c9f479c2b0304.tar.gz
forums-eded608a53b3882a7a42bddf6b1c9f479c2b0304.tar.bz2
forums-eded608a53b3882a7a42bddf6b1c9f479c2b0304.tar.xz
forums-eded608a53b3882a7a42bddf6b1c9f479c2b0304.zip
[ticket/10170] Fix broken recaptcha verification host.
PHPBB3-10170
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
index f3bc1a859f..0b0270f568 100644
--- a/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
+++ b/phpBB/includes/captcha/plugins/phpbb_recaptcha_plugin.php
@@ -29,7 +29,12 @@ class phpbb_recaptcha extends phpbb_default_captcha
{
var $recaptcha_server = 'http://www.google.com/recaptcha/api';
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 $response;
@@ -296,7 +301,7 @@ class phpbb_recaptcha extends phpbb_default_captcha
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(
'privatekey' => $config['recaptcha_privkey'],
'remoteip' => $user->ip,