--- loncom/auth/publiccheck.pm 2007/10/02 01:09:59 1.15 +++ 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.15 2007/10/02 01:09:59 albertel Exp $ +# $Id: publiccheck.pm,v 1.22 2013/12/13 01:34:38 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -42,7 +42,18 @@ sub handler { my $r = shift; 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; } @@ -58,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)) { @@ -75,7 +87,7 @@ sub handler { } elsif ($requrl eq '/adm/blockedaccess') { &process_public($r,$requrl); return OK; - } + } return DECLINED; }