Diff for /loncom/publisher/lonupload.pm between versions 1.5 and 1.6

version 1.5, 2001/06/23 18:26:40 version 1.6, 2001/06/24 18:40:58
Line 15 Line 15
 #  #
 # 03/31,04/03 Gerd Kortemeyer)  # 03/31,04/03 Gerd Kortemeyer)
 #  #
 # 04/05,04/09,05/25,06/23 Gerd Kortemeyer  # 04/05,04/09,05/25,06/23,06/24 Gerd Kortemeyer
   
 package Apache::lonupload;  package Apache::lonupload;
   
Line 46  sub upfile_store { Line 46  sub upfile_store {
   
 sub phaseone {  sub phaseone {
    my ($r,$fn,$uname,$udom)=@_;     my ($r,$fn,$uname,$udom)=@_;
      $ENV{'form.upfile.filename'}=~s/\\/\//g;
      $ENV{'form.upfile.filename'}=~s/^.*\/([^\/]+)$/$1/;
    if ($ENV{'form.upfile.filename'}) {     if ($ENV{'form.upfile.filename'}) {
     $fn=~s/\/[^\/]+$//;      $fn=~s/\/[^\/]+$//;
     $fn=~s/([^\/])$/$1\//;      $fn=~s/([^\/])$/$1\//;

Removed from v.1.5  
changed lines
  Added in v.1.6


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