--- loncom/auth/publiccheck.pm 2009/01/14 15:36:42 1.16 +++ loncom/auth/publiccheck.pm 2013/12/13 01:34:38 1.22 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: publiccheck.pm,v 1.16 2009/01/14 15:36:42 raeburn Exp $ +# $Id: publiccheck.pm,v 1.22 2013/12/13 01:34:38 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,10 +44,16 @@ sub handler { my $requrl=$r->uri; if (&Apache::lonnet::is_domainimage($requrl)) { + if (($r->user() eq '') && ($Apache::lonnet::apache >= 2.4)) { + $r->user('public'); + } return OK; } if ($requrl =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) { + if (($r->user() eq '') && ($Apache::lonnet::apache >= 2.4)) { + $r->user('public'); + } return OK; } @@ -63,7 +69,8 @@ sub handler { if ($requrl=~m|^/public/| || $requrl=~m|^/adm/help/.*\.hlp$| || $requrl=~m|^/adm/[^/]+/[^/]+/aboutme/portfolio$| - || (&Apache::lonnet::metadata($requrl,'copyright') eq 'public')) { + || (&Apache::lonnet::metadata($requrl,'copyright') eq 'public') + || $requrl=~m|^/adm/blockingstatus/.*$|) { &process_public($r,$requrl); return OK; } elsif (&Apache::lonnet::is_portfolio_url($requrl)) { @@ -80,7 +87,7 @@ sub handler { } elsif ($requrl eq '/adm/blockedaccess') { &process_public($r,$requrl); return OK; - } + } return DECLINED; }