Commit 14efe132 authored by Deepak Srivastava's avatar Deepak Srivastava

force ssl for recaptch for https site

parent 1295d64b
......@@ -80,9 +80,8 @@ class CRM_Utils_ReCAPTCHA {
require_once 'packages/recaptcha/recaptchalib.php';
// See if we are using SSL
if (CRM_Utils_System::isSSL()) {
$useSSL = TRUE;
// enforce ssl=true for https sites (
$useSSL = TRUE;
$html = recaptcha_get_html($config->recaptchaPublicKey, $error, $useSSL);
$form->assign('recaptchaHTML', $html);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment