--- loncom/interface/portfolio.pm 2004/08/25 18:48:26 1.33 +++ loncom/interface/portfolio.pm 2004/08/27 15:45:33 1.34 @@ -266,19 +266,6 @@ sub open_form { $ENV{'form.currentpath'}.'" />'); } -sub clean_filename { - my ($fname)=@_; -# Replace Windows backslashes by forward slashes - $fname=~s/\\/\//g; -# Get rid of everything but the actual filename - $fname=~s/^.*\/([^\/]+)$/$1/; -# Replace spaces by underscores - $fname=~s/\s+/\_/g; -# Replace all other weird characters by nothing - $fname=~s/[^\w\.\-]//g; - return $fname; -} - sub close_form { my ($r)=@_; $r->print('

An errror occured ('.$result. - ') while trying to upload '.&display_file().'
'); + $r->print(' An errror occured ('.$result. + ') while trying to upload '.&display_file().'
'); } } $r->print(&done());