diff --git a/modules/spamfilter/captcha/recaptcha.php b/modules/spamfilter/captcha/recaptcha.php index 99afbee64..f3e2b9775 100644 --- a/modules/spamfilter/captcha/recaptcha.php +++ b/modules/spamfilter/captcha/recaptcha.php @@ -32,7 +32,7 @@ class reCAPTCHA 'secret' => self::$config->secret_key, 'response' => $response, 'remoteip' => \RX_CLIENT_IP, - ]); + ], [], [], ['timeout' => 10]); if ($verify_request->getStatusCode() !== 200 || !$verify_request->getBody()) { throw new Exception('msg_recaptcha_connection_error'); diff --git a/modules/spamfilter/captcha/turnstile.php b/modules/spamfilter/captcha/turnstile.php index 41610705b..2f3dad337 100644 --- a/modules/spamfilter/captcha/turnstile.php +++ b/modules/spamfilter/captcha/turnstile.php @@ -32,7 +32,7 @@ class Turnstile 'secret' => self::$config->secret_key, 'response' => $response, 'remoteip' => \RX_CLIENT_IP, - ]); + ], [], [], ['timeout' => 10]); if ($verify_request->getStatusCode() !== 200 || !$verify_request->getBody()) { throw new Exception('msg_recaptcha_connection_error');