summaryrefslogtreecommitdiff
path: root/modules/recaptcha
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-01-08 00:19:57 -0800
committerBharat Mediratta <bharat@menalto.com>2011-01-08 00:19:57 -0800
commit7b382b363dfd3002cb1f10089c7a1e9e82eb804a (patch)
tree1cb4fdc08453008e27acf3e1bfcd951a6bb5ebdd /modules/recaptcha
parent966dee8628293f78fbf9431281709ceba011d3c2 (diff)
Use the appropriate protocol for the reCAPTCHA script (so use https when the page is https).
Fixes #1445.
Diffstat (limited to 'modules/recaptcha')
-rw-r--r--modules/recaptcha/views/form_recaptcha.html.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/recaptcha/views/form_recaptcha.html.php b/modules/recaptcha/views/form_recaptcha.html.php
index 20e7359e..7481d000 100644
--- a/modules/recaptcha/views/form_recaptcha.html.php
+++ b/modules/recaptcha/views/form_recaptcha.html.php
@@ -1,6 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<div id="g-recaptcha"></div>
-<script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script>
+<script type="text/javascript" src="<?= request::protocol() ?>://www.google.com/recaptcha/api/js/recaptcha_ajax.js">
+</script>
<script type="text/javascript">
setTimeout(function() {
Recaptcha.create(