--- loncom/auth/publiccheck.pm 2009/09/25 13:51:45 1.17 +++ 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.17 2009/09/25 13:51:45 droeschl 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; } @@ -81,7 +87,7 @@ sub handler { } elsif ($requrl eq '/adm/blockedaccess') { &process_public($r,$requrl); return OK; - } + } return DECLINED; }