Use the appropriate protocol for the reCAPTCHA script (so use https when the page is https).

Fixes #1445.
This commit is contained in:
Bharat Mediratta
2011-01-08 00:19:57 -08:00
parent 966dee8628
commit 7b382b363d

View File

@@ -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(