X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FRecaptcha%2FRecaptchaPlugin.php;h=4e28e850ccd3d37b3e44a96aed5a7ea77f933aaa;hb=83397e28b8459962ae291a45e6c566bccb93a454;hp=0c46a33e0b0cea702326c436fce4283bf8525cad;hpb=afd92957b43aedf8dfb38b0c03aa0461ca27974a;p=quix0rs-gnu-social.git diff --git a/plugins/Recaptcha/RecaptchaPlugin.php b/plugins/Recaptcha/RecaptchaPlugin.php index 0c46a33e0b..4e28e850cc 100644 --- a/plugins/Recaptcha/RecaptchaPlugin.php +++ b/plugins/Recaptcha/RecaptchaPlugin.php @@ -77,10 +77,10 @@ class RecaptchaPlugin extends Plugin { if (isset($action->recaptchaPluginNeedsOutput) && $action->recaptchaPluginNeedsOutput) { // Load the AJAX API - if ($this->checkssl()) { - $url = "https://api-secure.recaptcha.net/js/recaptcha_ajax.js"; + if (StatusNet::isHTTPS()) { + $url = "https://www.google.com/recaptcha/api/js/recaptcha_ajax.js"; } else { - $url = "http://api.recaptcha.net/js/recaptcha_ajax.js"; + $url = "http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"; } $action->script($url);