Diff for /loncom/publisher/lonupload.pm between versions 1.3 and 1.4

version 1.3, 2001/05/25 16:36:36 version 1.4, 2001/05/25 17:03:58
Line 67  sub phaseone { Line 67  sub phaseone {
 }  }
   
 sub phasetwo {  sub phasetwo {
     my ($r,$fn,$uname,$udom)=@_;     my ($r,$fn,$uname,$udom)=@_;
      if ($fn=~/^\/priv\/$uname\//) { 
     my $tfn=$fn;      my $tfn=$fn;
     $tfn=~s/^\/(\~|priv)\/(\w+)//;      $tfn=~s/^\/(\~|priv)\/(\w+)//;
     my $target='/home/'.$uname.'/public_html'.$tfn;      my $target='/home/'.$uname.'/public_html'.$tfn;
Line 97  sub phasetwo { Line 98  sub phasetwo {
    '<font size=+1 color=red>Please pick a filename</font><p>');     '<font size=+1 color=red>Please pick a filename</font><p>');
        &phaseone($r,$fn,$uname,$udom);         &phaseone($r,$fn,$uname,$udom);
     }      }
     } else {
       $r->print(
      '<font size=+1 color=red>Please pick a filename</font><p>');
       &phaseone($r,$fn,$uname,$udom);
     }
 }  }
   
 sub handler {  sub handler {

Removed from v.1.3  
changed lines
  Added in v.1.4


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