--- loncom/auth/publiccheck.pm 2010/03/17 19:41:11 1.19 +++ loncom/auth/publiccheck.pm 2013/02/05 21:32:45 1.20 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: publiccheck.pm,v 1.19 2010/03/17 19:41:11 raeburn Exp $ +# $Id: publiccheck.pm,v 1.20 2013/02/05 21:32:45 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 '') { + $r->user('public'); + } return OK; } if ($requrl =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) { + if ($r->user() eq '') { + $r->user('public'); + } return OK; }