Diff for /loncom/lonnet/perl/lonnet.pm between versions 1.315 and 1.316

version 1.315, 2003/01/10 14:50:08 version 1.316, 2003/01/10 20:55:44
Line 864  sub userfileupload { Line 864  sub userfileupload {
 # Replace spaces by underscores  # Replace spaces by underscores
     $fname=~s/\s+/\_/g;      $fname=~s/\s+/\_/g;
 # Replace all other weird characters by nothing  # Replace all other weird characters by nothing
     $fname=~s/[^\w\.]//g;      $fname=~s/[^\w\.\-\+]//g;
 # See if there is anything left  # See if there is anything left
     unless ($fname) { return 'error: no uploaded file'; }      unless ($fname) { return 'error: no uploaded file'; }
     chop($ENV{'form.'.$formname});      chop($ENV{'form.'.$formname});

Removed from v.1.315  
changed lines
  Added in v.1.316


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