diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-01-08 00:19:57 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-01-08 00:19:57 -0800 |
commit | 7b382b363dfd3002cb1f10089c7a1e9e82eb804a (patch) | |
tree | 1cb4fdc08453008e27acf3e1bfcd951a6bb5ebdd | |
parent | 966dee8628293f78fbf9431281709ceba011d3c2 (diff) |
Use the appropriate protocol for the reCAPTCHA script (so use https when the page is https).
Fixes #1445.
-rw-r--r-- | modules/recaptcha/views/form_recaptcha.html.php | 3 |
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( |