--- loncom/publisher/lonupload.pm 2002/08/24 03:56:58 1.13 +++ loncom/publisher/lonupload.pm 2002/09/10 02:31:26 1.14 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # Handler to upload files into construction space # -# $Id: lonupload.pm,v 1.13 2002/08/24 03:56:58 foxr Exp $ +# $Id: lonupload.pm,v 1.14 2002/09/10 02:31:26 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,6 +59,7 @@ use Apache::loncacc; use Apache::loncommon(); use Apache::Log(); use Apache::lonnet; +use HTML::Entities(); my $DEBUG=0; @@ -159,7 +160,7 @@ sub phasetwo { # target is the full filesystem path of the destination file. my $base = &File::Basename::basename($fn); my $path = &File::Basename::dirname($fn); - $base = Apache::lonnet::escape($base); + $base = &HTML::Entities::encode($base); my $url = $path."/".$base; &Debug($r, "URL is now ".$url); my $datatoken=$ENV{'form.datatoken'};