--- loncom/auth/publiccheck.pm 2007/10/02 01:09:59 1.15 +++ loncom/auth/publiccheck.pm 2009/01/14 15:36:42 1.16 @@ -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.16 2009/01/14 15:36:42 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -42,10 +42,15 @@ sub handler { my $r = shift; my $requrl=$r->uri; + if (&Apache::lonnet::is_domainimage($requrl)) { return OK; } + if ($requrl =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) { + return OK; + } + my $handle = &Apache::lonnet::check_for_valid_session($r); if ($handle ne '') { my $lonidsdir=$r->dir_config('lonIDsDir');