--- loncom/interface/lonsyllabus.pm 2020/01/20 16:27:54 1.148 +++ loncom/interface/lonsyllabus.pm 2021/04/29 17:45:22 1.149 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.148 2020/01/20 16:27:54 raeburn Exp $ +# $Id: lonsyllabus.pm,v 1.149 2021/04/29 17:45:22 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -187,7 +187,8 @@ sub handler { unless ($allowed && $forceedit) { if (($env{'user.name'} eq 'public') && ($env{'user.domain'} eq 'public') && ($ENV{'SERVER_PORT'} == 443) && ($external =~ m{^http://}) && !($env{'form.usehttp'})) { - unless (&Apache::lonnet::uses_sts()) { + my $hostname = $r->hostname(); + unless ((&Apache::lonnet::uses_sts()) || (&Apache::lonnet::waf_allssl($hostname))) { &redirect_to_http($r); return OK; }