--- loncom/auth/checkauthen.pm 2014/01/05 11:30:06 1.15 +++ loncom/auth/checkauthen.pm 2018/11/25 02:49:26 1.20 @@ -1,7 +1,7 @@ # The LearningOnline Network -# checks for a cokkie to authenticate a user +# checks for a cookie to authenticate a user # -# $Id: checkauthen.pm,v 1.15 2014/01/05 11:30:06 raeburn Exp $ +# $Id: checkauthen.pm,v 1.20 2018/11/25 02:49:26 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -38,14 +38,14 @@ sub handler { if ($r->uri() =~ m{^/res/adm/pages/[^/]+\.(gif|png)$}) { if ($r->user() eq '') { - $r->user('public'); + $r->user('public:public'); } return OK; } if (&Apache::lonnet::is_domainimage($r->uri)) { if ($r->user() eq '') { - $r->user('public'); + $r->user('public:public'); } return OK; } @@ -66,7 +66,7 @@ sub handler { && $env{'user.domain'} eq 'public') { if ($env{'request.publicaccess'} ) { if ($r->user() eq '') { - $r->user('public'); + $r->user('public:public'); } return OK; } else { @@ -99,7 +99,7 @@ sub handler { } if (($fail == FORBIDDEN) && (($r->uri eq '/adm/email') || ($r->uri eq '/adm/preferences') || - ($r->uri eq '/adm/requestcourse'))) { + ($r->uri eq '/adm/requestcourse') || ($r->uri =~ m{^/tiny/[\w\-.]+/\w+$}))) { $env{'form.firsturl'} = $r->uri; } return $fail;