Diff for /loncom/auth/publiccheck.pm between versions 1.10 and 1.13

version 1.10, 2006/08/04 21:31:53 version 1.13, 2007/01/24 19:39:22
Line 37  use Apache::lonlocal; Line 37  use Apache::lonlocal;
 use CGI::Cookie();  use CGI::Cookie();
 use Fcntl qw(:flock);  use Fcntl qw(:flock);
 use Apache::lonacc();  use Apache::lonacc();
   use LONCAPA();
   
 sub handler {  sub handler {
     my $r = shift;      my $r = shift;
Line 45  sub handler { Line 46  sub handler {
     my %cookies=CGI::Cookie->parse($r->header_in('Cookie'));      my %cookies=CGI::Cookie->parse($r->header_in('Cookie'));
     my $lonid=$cookies{'lonID'};      my $lonid=$cookies{'lonID'};
     if ($lonid) {      if ($lonid) {
  my $handle=$lonid->value;   my $handle=&LONCAPA::clean_handle($lonid->value);
         $handle=~s/\W//g;  
         my $lonidsdir=$r->dir_config('lonIDsDir');          my $lonidsdir=$r->dir_config('lonIDsDir');
         if ((-e "$lonidsdir/$handle.id") && ($handle ne '')) {          if ((-e "$lonidsdir/$handle.id") && ($handle ne '')) {
     &Apache::lonnet::transfer_profile_to_env($lonidsdir,$handle);      &Apache::lonnet::transfer_profile_to_env($lonidsdir,$handle);
Line 73  sub handler { Line 73  sub handler {
     } elsif ($requrl eq '/adm/restrictedaccess') {      } elsif ($requrl eq '/adm/restrictedaccess') {
         &process_public($r,$requrl);          &process_public($r,$requrl);
  return OK;   return OK;
       } elsif ($requrl eq '/adm/blockedaccess') {
          &process_public($r,$requrl);
          return OK;
     }       } 
     return DECLINED;      return DECLINED;
 }  }

Removed from v.1.10  
changed lines
  Added in v.1.13


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