summaryrefslogtreecommitdiff
path: root/plugins/Recaptcha
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Recaptcha')
-rw-r--r--plugins/Recaptcha/RecaptchaPlugin.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Recaptcha/RecaptchaPlugin.php b/plugins/Recaptcha/RecaptchaPlugin.php
index f09d81ec0..7cc34c568 100644
--- a/plugins/Recaptcha/RecaptchaPlugin.php
+++ b/plugins/Recaptcha/RecaptchaPlugin.php
@@ -77,8 +77,11 @@ class RecaptchaPlugin extends Plugin
{
if (isset($action->recaptchaPluginNeedsOutput) && $action->recaptchaPluginNeedsOutput) {
// Load the AJAX API
- $proto = $this->checkssl() ? 'https' : 'http';
- $url = "$proto://api.recaptcha.net/js/recaptcha_ajax.js";
+ if ($this->checkssl()) {
+ $url = "https://api-secure.recaptcha.net/js/recaptcha_ajax.js";
+ } else {
+ $url = "http://api.recaptcha.net/js/recaptcha_ajax.js";
+ }
$action->script($url);
// And when we're ready, fill out the captcha!