From: Alexander Ebert Date: Thu, 27 Feb 2014 21:14:40 +0000 (+0100) Subject: Reducing timeout for ReCAPTCHA response from 30 to 10 seconds X-Git-Tag: 2.0.3~6^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=95cf7f07c6e499fa00f1cb6b6e71109ba5116b05;p=GitHub%2FWoltLab%2FWCF.git Reducing timeout for ReCAPTCHA response from 30 to 10 seconds --- diff --git a/wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandler.class.php b/wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandler.class.php index 820effadd6..a197409db0 100644 --- a/wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandler.class.php +++ b/wcfsetup/install/files/lib/system/recaptcha/RecaptchaHandler.class.php @@ -143,7 +143,7 @@ class RecaptchaHandler extends SingletonFactory { * @param string $response */ protected function verify($challenge, $response) { - $request = new HTTPRequest('http://www.google.com/recaptcha/api/verify', array(), array( + $request = new HTTPRequest('http://www.google.com/recaptcha/api/verify', array('timeout' => 10), array( 'privatekey' => $this->privateKey, 'remoteip' => UserUtil::getIpAddress(), 'challenge' => $challenge,