Diff for /loncom/auth/lonacc.pm between versions 1.59 and 1.60

version 1.59, 2005/01/25 00:28:00 version 1.60, 2005/01/28 09:30:40
Line 166  sub handler { Line 166  sub handler {
     if ($requrl=~m|^/public/|      if ($requrl=~m|^/public/|
  || (&Apache::lonnet::metadata($requrl,'copyright') eq 'public')) {   || (&Apache::lonnet::metadata($requrl,'copyright') eq 'public')) {
         &Apache::lonnet::logthis('Granting public access: '.$requrl);          &Apache::lonnet::logthis('Granting public access: '.$requrl);
  my $buffer;   &Apache::loncommon::get_posted_cgi($r);
  $r->read($buffer,$r->header_in('Content-length'),0);  
  &Apache::loncommon::get_unprocessed_cgi($buffer);  
  $ENV{'user.name'}='public';   $ENV{'user.name'}='public';
         $ENV{'user.domain'}='public';          $ENV{'user.domain'}='public';
         $ENV{'request.state'} = "published";          $ENV{'request.state'} = "published";

Removed from v.1.59  
changed lines
  Added in v.1.60


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>