From 52cee0d6e8ac10ca50142ed0d0fcb51644b37abb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 21 Mar 2013 17:07:32 +0000 Subject: [PATCH] is_https hook: rename from check_https --- cgi-auth-flexible.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi-auth-flexible.pm b/cgi-auth-flexible.pm index 1b51142..9144501 100644 --- a/cgi-auth-flexible.pm +++ b/cgi-auth-flexible.pm @@ -446,7 +446,7 @@ sub new_verifier { get_path_info => sub { $_[0]->path_info() }, get_cookie => sub { $_[0]->cookie($_[1]->{S}{cookie_name}) }, get_method => sub { $_[0]->request_method() }, - check_https => sub { !!$_[0]->https() }, + is_https => sub { !!$_[0]->https() }, get_url => sub { $_[0]->url(); }, is_login => sub { defined $_[1]->_rp('password_param_name') }, login_ok => \&login_ok_password, @@ -789,7 +789,7 @@ sub _check_divert_core ($) { my $cooks = $r->_ch('get_cookie'); - if ($r->{S}{encrypted_only} && !$r->_ch('check_https')) { + if ($r->{S}{encrypted_only} && !$r->_ch('is_https')) { return ({ Kind => 'REDIRECT-HTTPS', Message => $r->_gt("Redirecting to secure server..."), CookieSecret => undef, -- 2.30.2