Skip to content

Commit

Permalink
MDL-63940 recaptcha: Use www.recaptcha.net in the service endpoint URL
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mudrd8mz committed Nov 8, 2018
1 parent 4ead20f commit bdbecaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/recaptchalib_v2.php
Expand Up @@ -48,8 +48,8 @@
/**
* 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.
Expand Down

0 comments on commit bdbecaf

Please sign in to comment.