--- loncom/auth/publiccheck.pm 2013/02/05 21:32:45 1.20 +++ loncom/auth/publiccheck.pm 2013/02/08 16:23:56 1.21 @@ -1,7 +1,7 @@ # The LearningOnline Network # Cookie Based Access Handler # -# $Id: publiccheck.pm,v 1.20 2013/02/05 21:32:45 raeburn Exp $ +# $Id: publiccheck.pm,v 1.21 2013/02/08 16:23:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,14 +44,14 @@ sub handler { my $requrl=$r->uri; if (&Apache::lonnet::is_domainimage($requrl)) { - if ($r->user() eq '') { + 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 '') { + if (($r->user() eq '') && ($Apache::lonnet::apache >= 2.4)) { $r->user('public'); } return OK;