projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e983763
)
Always load recaptcha JS over HTTPS
author
Alexy Mikhailichenko
<alexymik@users.noreply.github.com>
Thu, 14 Feb 2019 22:12:19 +0000
(17:12 -0500)
committer
GitHub
<noreply@github.com>
Thu, 14 Feb 2019 22:12:19 +0000
(17:12 -0500)
CRM/Utils/ReCAPTCHA.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/ReCAPTCHA.php
b/CRM/Utils/ReCAPTCHA.php
index 4cb2045944e52a0504513728e5f57d6123cac968..d1afe457a1c785ae8a2935725dd877f839676f71 100644
(file)
--- a/
CRM/Utils/ReCAPTCHA.php
+++ b/
CRM/Utils/ReCAPTCHA.php
@@
-98,11
+98,10
@@
class CRM_Utils_ReCAPTCHA {
require_once 'packages/recaptcha/recaptchalib.php';
}
- // See if we are using SSL
- if (CRM_Utils_System::isSSL()) {
- $useSSL = TRUE;
- }
- $html = recaptcha_get_html($config->recaptchaPublicKey, $error, $useSSL);
+ // Load the Recaptcha api.js over HTTPS
+ $useHTTPS = TRUE;
+
+ $html = recaptcha_get_html($config->recaptchaPublicKey, $error, $useHTTPS);
$form->assign('recaptchaHTML', $html);
$form->assign('recaptchaOptions', $config->recaptchaOptions);