Diff for /loncom/auth/lonacc.pm between versions 1.28 and 1.34

version 1.28, 2002/02/26 21:01:33 version 1.34, 2002/07/03 20:54:49
Line 172  sub handler { Line 172  sub handler {
             $requrl=~/\.(\w+)$/;              $requrl=~/\.(\w+)$/;
             if (&Apache::loncommon::fileembstyle($1) eq 'ssi') {              if (&Apache::loncommon::fileembstyle($1) eq 'ssi') {
 # ------------------------------------- This is serious stuff, get symb and log  # ------------------------------------- This is serious stuff, get symb and log
  my $symb=&Apache::lonnet::symbread;   my $query=$r->args;
                   my $symb;
                   if ($query) {
       &Apache::loncommon::get_unprocessed_cgi($query,['symb']);
                   }
                   if ($ENV{'form.symb'}) {
       $symb=&Apache::lonnet::symbclean($ENV{'form.symb'});
                       if (&Apache::lonnet::symbverify($symb,$requrl)) {
                         my ($map,$mid,$murl)=split(/\_\_\_/,$symb);
                         &Apache::lonnet::symblist($map,$murl => $mid,
                                                  'last_known' => $murl);
       } else {
    $r->log_reason('Invalid symb for '.$requrl.': '.
                                          $symb);
           $ENV{'user.error.msg'}=
                                   "$requrl:bre:1:1:Invalid Access";
                    return HTTP_NOT_ACCEPTABLE; 
                       }
                   } else {
               $symb=&Apache::lonnet::symbread;
                   }
                 $ENV{'request.symb'}=$symb;                  $ENV{'request.symb'}=$symb;
                 &Apache::lonnet::courseacclog($symb);                  &Apache::lonnet::courseacclog($symb);
             } else {              } else {
Line 196  sub handler { Line 216  sub handler {
         $ENV{'request.filename'} = $r->filename;          $ENV{'request.filename'} = $r->filename;
         return OK;          return OK;
     }      }
 # ----------------------------------------------- Store where they wanted to go  # -------------------------------------------------------------- Not authorized
           $requrl=~/\.(\w+)$/;
     $ENV{'request.firsturl'}=$requrl;      if ((&Apache::loncommon::fileembstyle($1) eq 'ssi') ||
     return FORBIDDEN;          ($requrl=~/^\/adm\/(roles|logout)/)) {
   # -------------------------- Store where they wanted to go and get login screen
          $ENV{'request.firsturl'}=$requrl;
          return FORBIDDEN;
      } else {
   # --------------------------------------------------------------------- Goodbye
          return HTTP_BAD_REQUEST;
      }
 }  }
   
 1;  1;

Removed from v.1.28  
changed lines
  Added in v.1.34


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