Encapsulate logic for determining if an SSL request has been made.
Refactor core modules to use that.
This commit is contained in:
parent
39127b7ec0
commit
1c9908f490
5 changed files with 23 additions and 17 deletions
|
|
@ -161,7 +161,7 @@ sub toHtml {
|
|||
my $env = $self->session->env;
|
||||
my $pubKey = $self->session->setting->get('recaptchaPublicKey');
|
||||
my $server = "http://api.recaptcha.net";
|
||||
if ($env->get("HTTPS") eq "on" || $env->get("SSLPROXY")) {
|
||||
if ($env->sslRequest) {
|
||||
$server = "http://api-secure.recaptcha.net";
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue