From: Ian Jackson Date: Thu, 21 Mar 2013 17:07:32 +0000 (+0000) Subject: is_https hook: rename from check_https X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=cgi-auth-flexible.git;a=commitdiff_plain;h=52cee0d6e8ac10ca50142ed0d0fcb51644b37abb is_https hook: rename from check_https --- 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,