Fixed reCaptcha not loaded

Fixed reCaptcha bug which was causing reCaptcha to not be loaded if site is loaded over SSL.
This commit is contained in:
Aleksandar Puharic 2015-06-12 22:59:17 +02:00
parent bffe7c3973
commit aa74dc2718

View File

@ -35,7 +35,7 @@
/**
* The reCAPTCHA server URL's
*/
define("RECAPTCHA_API_SERVER", "http://www.google.com/recaptcha/api");
define("RECAPTCHA_API_SERVER", "//www.google.com/recaptcha/api");
define("RECAPTCHA_API_SECURE_SERVER", "https://www.google.com/recaptcha/api");
define("RECAPTCHA_VERIFY_SERVER", "www.google.com");
@ -241,7 +241,7 @@ function recaptcha_mailhide_url($pubkey, $privkey, $email) {
$ky = pack('H*', $privkey);
$cryptmail = _recaptcha_aes_encrypt ($email, $ky);
return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail);
return "https://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail);
}
/**