Skip to content

Commit

Permalink
Add check to [recaptcha] tag if we need to use SSL based API.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Nov 14, 2013
1 parent ed0b3bc commit 3ed38aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Vend/reCAPTCHA.pm
Expand Up @@ -50,7 +50,10 @@ sub recaptcha {
$var_ref = recaptcha_variables();

if ($function eq 'get_html') {
return $recaptcha->get_html($var_ref->{public_key});
return $recaptcha->get_html($var_ref->{public_key},
undef,
# use SSL based API ?
$CGI::secure);
}
elsif ($function eq 'check_answer') {
my @values = ($var_ref->{private_key},
Expand Down

0 comments on commit 3ed38aa

Please sign in to comment.