From 95cf7f07c6e499fa00f1cb6b6e71109ba5116b05 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 27 Feb 2014 22:14:40 +0100 Subject: [PATCH] Reducing timeout for ReCAPTCHA response from 30 to 10 seconds --- .../files/lib/system/recaptcha/RecaptchaHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1