Diff for /loncom/auth/lonacc.pm between versions 1.7 and 1.10

version 1.7, 2000/09/06 14:25:17 version 1.10, 2000/09/28 17:01:17
Line 1 Line 1
 # The LearningOnline Network  # The LearningOnline Network
 # Cookie Based Access Handler  # Cookie Based Access Handler
 # 5/21/99,5/22,5/29,5/31,6/15,16/11,22/11,  # 5/21/99,5/22,5/29,5/31,6/15,16/11,22/11,
 # 01/06,01/13,05/31,06/01,09/06 Gerd Kortemeyer  # 01/06,01/13,05/31,06/01,09/06,09/25,09/28 Gerd Kortemeyer
   
 package Apache::lonacc;  package Apache::lonacc;
   
 use strict;  use strict;
 use Apache::Constants qw(:common :http);  use Apache::Constants qw(:common :http :methods);
 use Apache::File;  use Apache::File;
 use Apache::lonnet;  use Apache::lonnet;
 use CGI::Cookie();  use CGI::Cookie();
Line 34  sub handler { Line 34  sub handler {
             for ($envi=0;$envi<=$#profile;$envi++) {              for ($envi=0;$envi<=$#profile;$envi++) {
  chomp($profile[$envi]);   chomp($profile[$envi]);
  my ($envname,$envvalue)=split(/=/,$profile[$envi]);   my ($envname,$envvalue)=split(/=/,$profile[$envi]);
                 $r->subprocess_env("$envname" => "$envvalue");                  $ENV{$envname} = $envvalue;
                 $ENV{$envname}=$envvalue;  
             }              }
             $r->subprocess_env("user.environment" => "$lonidsdir/$handle.id",              $ENV{'user.environment'} = "$lonidsdir/$handle.id";
                                "request.state"    => "published",              $ENV{'request.state'}    = "published";
                                "request.filename" => $r->filename);              $ENV{'request.filename'} = $r->filename;
   
 # -------------------------------------------------------- Load POST parameters  # -------------------------------------------------------- Load POST parameters
   
   
              
             my $buffer;              my $buffer;
   
             $r->read($buffer,$r->header_in('Content-length'));              $r->read($buffer,$r->header_in('Content-length'));
Line 52  sub handler { Line 53  sub handler {
                my ($name,$value) = split(/=/,$pair);                 my ($name,$value) = split(/=/,$pair);
                $value =~ tr/+/ /;                 $value =~ tr/+/ /;
                $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;                 $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
                $r->subprocess_env("form.$name" => $value);                 $name  =~ tr/+/ /;
                  $name  =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
                  $ENV{"form.$name"}=$value;
             }              }
   
               $r->method_number(M_GET);
       $r->method('GET');
               $r->headers_in->unset('Content-length');
   
 # ---------------------------------------------------------------- Check access  # ---------------------------------------------------------------- Check access
   

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


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