From 5e6b3483e208a4b529b7546a97b28b81d9706847 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sat, 1 Mar 2025 15:57:18 +0900 Subject: [PATCH] Increase reCAPTCHA and Turnstile timeouts --- modules/spamfilter/captcha/recaptcha.php | 2 +- modules/spamfilter/captcha/turnstile.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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');