--- loncom/auth/publiccheck.pm 2006/11/23 01:49:41 1.11 +++ loncom/auth/publiccheck.pm 2007/04/11 21:36:58 1.14 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: publiccheck.pm,v 1.11 2006/11/23 01:49:41 albertel Exp $ +# $Id: publiccheck.pm,v 1.14 2007/04/11 21:36:58 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,11 +37,15 @@ use Apache::lonlocal; use CGI::Cookie(); use Fcntl qw(:flock); use Apache::lonacc(); +use LONCAPA(); sub handler { my $r = shift; my $requrl=$r->uri; + if (&Apache::lonnet::is_domainimage($requrl)) { + return OK; + } my %cookies=CGI::Cookie->parse($r->header_in('Cookie')); my $lonid=$cookies{'lonID'}; if ($lonid) { @@ -72,6 +76,9 @@ sub handler { } elsif ($requrl eq '/adm/restrictedaccess') { &process_public($r,$requrl); return OK; + } elsif ($requrl eq '/adm/blockedaccess') { + &process_public($r,$requrl); + return OK; } return DECLINED; }