X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=cgi-auth-flexible.git;a=blobdiff_plain;f=cgi-auth-flexible.pm;h=9144501e2e9d3dd3eef31c71493eb32a62be4be8;hp=1b51142bfeab55c2e6883b111e0dbab1f4735209;hb=52cee0d6e8ac10ca50142ed0d0fcb51644b37abb;hpb=8a20940a918ec4b98c4a38c295dda6488b6f4ece 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,