Diff for /loncom/lonnet/perl/lonuploadrep.pm between versions 1.8 and 1.9

version 1.8, 2006/08/21 15:21:31 version 1.9, 2006/12/20 22:41:07
Line 31  use Apache::Constants qw(:common :http); Line 31  use Apache::Constants qw(:common :http);
 use Apache::lonrep();  use Apache::lonrep();
 use Apache::lonnet;  use Apache::lonnet;
 use CGI::Cookie();  use CGI::Cookie();
   use LONCAPA();
   
 sub handler {  sub handler {
     my $r = shift;      my $r = shift;
     if ($r->uri =~m|^/*uploaded/(\w+)/(\w+)/(.+)$|) {      if ($r->uri =~m{^/*uploaded/($LONCAPA::domain_re)/($LONCAPA::name_re)/(.+)$}) {
         my $chome=&Apache::lonnet::homeserver($2,$1);          my $chome=&Apache::lonnet::homeserver($2,$1);
  my @ids=&Apache::lonnet::current_machine_ids();   my @ids=&Apache::lonnet::current_machine_ids();
  foreach my $id (@ids) { if ($id eq $chome) { return OK; } }   foreach my $id (@ids) { if ($id eq $chome) { return OK; } }

Removed from v.1.8  
changed lines
  Added in v.1.9


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