--- loncom/publisher/loncfile.pm 2003/03/08 01:41:53 1.28 +++ loncom/publisher/loncfile.pm 2003/03/10 18:34:14 1.29 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.28 2003/03/08 01:41:53 www Exp $ +# $Id: loncfile.pm,v 1.29 2003/03/10 18:34:14 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -494,7 +494,7 @@ sub Rename1 { if(-e $conspace) { if($ENV{'form.newfilename'}) { my $newfilename = $ENV{'form.newfilename'}; - if ($newfilename =~ m|^[^\.]+$|) { + if ($newfilename =~ m|/[^\.]+$|) { #no extension add on orignal extension if ($filename =~ m|/[^\.]*\.([^\.]+)$|) { $newfilename.='.'.$1;