[LON-CAPA-cvs] cvs: loncom /publisher loncfile.pm

banghart lon-capa-cvs@mail.lon-capa.org
Wed, 22 Nov 2006 22:10:58 -0000


banghart		Wed Nov 22 17:10:58 2006 EDT

  Modified files:              
    /loncom/publisher	loncfile.pm 
  Log:
  	Bug 5079. Construction space rename file returns to directory
  		  listing.
  
  
Index: loncom/publisher/loncfile.pm
diff -u loncom/publisher/loncfile.pm:1.77 loncom/publisher/loncfile.pm:1.78
--- loncom/publisher/loncfile.pm:1.77	Tue May 30 08:47:41 2006
+++ loncom/publisher/loncfile.pm	Wed Nov 22 17:10:58 2006
@@ -9,7 +9,7 @@
 #  and displays a page showing the results of the action.
 #
 #
-# $Id: loncfile.pm,v 1.77 2006/05/30 12:47:41 www Exp $
+# $Id: loncfile.pm,v 1.78 2006/11/22 22:10:58 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1138,7 +1138,7 @@
     
     &Debug($r, "loncfile - Entering phase 2 for $fn");
     
-    # Break down the file into it's component pieces.
+    # Break down the file into its component pieces.
     
     my $dir;		# Directory path
     my $main;		# Filename.
@@ -1179,7 +1179,7 @@
 	    if(!&Rename2($r, $uname, $dir, $fn, $env{'form.newfilename'})) {
 		return;
 	    }
-	    $dest = $env{'form.newfilename'};
+	    $dest = $dir."/";
 	}
     } elsif ($env{'form.action'} eq 'delete') { 
 	if(!&Delete2($r, $uname, $env{'form.newfilename'})) {