Skip to content

Commit

Permalink
Use the appropriate protocol for the reCAPTCHA script (so use https w…
Browse files Browse the repository at this point in the history
…hen the page is https).

Fixes #1445.
  • Loading branch information
bharat committed Jan 8, 2011
1 parent 966dee8 commit 7b382b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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(
Expand Down

0 comments on commit 7b382b3

Please sign in to comment.