[wellwell-devel] [wellwell] Add check to [recaptcha] tag if we need to use SSL based API.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Thu Nov 14 23:05:43 UTC 2013
commit 3ed38aa0bf2d3a58a617e18eed890cd9b4a6e710
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Fri Nov 15 00:02:09 2013 +0100
Add check to [recaptcha] tag if we need to use SSL based API.
lib/Vend/reCAPTCHA.pm | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/reCAPTCHA.pm b/lib/Vend/reCAPTCHA.pm
index f958f06..51a583f 100644
--- a/lib/Vend/reCAPTCHA.pm
+++ b/lib/Vend/reCAPTCHA.pm
@@ -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},
More information about the wellwell-devel
mailing list