From 8de16109055c01dbd003b3a3199385c3e8c1c067 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Thu, 28 May 2015 10:06:42 -0400 Subject: [PATCH] Always use secure connection for ReCaptcha. --- module/VuFind/src/VuFind/Service/Factory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Service/Factory.php b/module/VuFind/src/VuFind/Service/Factory.php index 8bc0d52b4c3..eb8b55f6707 100644 --- a/module/VuFind/src/VuFind/Service/Factory.php +++ b/module/VuFind/src/VuFind/Service/Factory.php @@ -468,7 +468,9 @@ class Factory : (isset($config->Captcha->privateKey) ? $config->Captcha->privateKey : ''); - $recaptcha = new \LosReCaptcha\Service\ReCaptcha($siteKey, $secretKey); + $recaptcha = new \LosReCaptcha\Service\ReCaptcha( + $siteKey, $secretKey, ['ssl' => true] + ); if (isset($config->Captcha->theme)) { $recaptcha->setOption('theme', $config->Captcha->theme); } -- GitLab