From b207af3b487c9f42d3db393e39ce06ec13db44eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mudr=C3=A1k?= Date: Thu, 8 Nov 2018 22:55:33 +0100 Subject: [PATCH] MDL-63940 recaptcha: Use www.recaptcha.net in the service endpoint URL There are countries where www.google.com is a being blocked and recaptcha does not work there. As shown at https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally it is enough to simply use www.recaptcha.net in the service endpoint URL. --- lib/recaptchalib_v2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/recaptchalib_v2.php b/lib/recaptchalib_v2.php index b8e4837d3a5..8267fa7cf0f 100644 --- a/lib/recaptchalib_v2.php +++ b/lib/recaptchalib_v2.php @@ -48,8 +48,8 @@ defined('MOODLE_INTERNAL') || die(); /** * The reCAPTCHA URL's */ -define('RECAPTCHA_API_URL', 'https://www.google.com/recaptcha/api.js'); -define('RECAPTCHA_VERIFY_URL', 'https://www.google.com/recaptcha/api/siteverify'); +define('RECAPTCHA_API_URL', 'https://www.recaptcha.net/recaptcha/api.js'); +define('RECAPTCHA_VERIFY_URL', 'https://www.recaptcha.net/recaptcha/api/siteverify'); /** * Returns the language code the reCAPTCHA element should use.