--- loncom/interface/loncommon.pm 2013/09/01 02:34:28 1.1075.2.50 +++ loncom/interface/loncommon.pm 2013/09/07 00:46:18 1.1075.2.51 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1075.2.50 2013/09/01 02:34:28 raeburn Exp $ +# $Id: loncommon.pm,v 1.1075.2.51 2013/09/07 00:46:18 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -14855,9 +14855,13 @@ sub check_captcha { sub create_recaptcha { my ($pubkey) = @_; + my $use_ssl; + if ($ENV{'SERVER_PORT'} == 443) { + $use_ssl = 1; + } my $captcha = Captcha::reCAPTCHA->new; return $captcha->get_options_setter({theme => 'white'})."\n". - $captcha->get_html($pubkey). + $captcha->get_html($pubkey,undef,$use_ssl). &mt('If either word is hard to read, [_1] will replace them.', 'reCAPTCHA refresh'). '

';