[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

banghart lon-capa-cvs@mail.lon-capa.org
Sun, 26 Mar 2006 21:20:59 -0000


banghart		Sun Mar 26 16:20:59 2006 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  	Not sure what I'm doing here, but this fixes MY problem. I may
  	misunderstand clutter and declutter. 
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.720 loncom/lonnet/perl/lonnet.pm:1.721
--- loncom/lonnet/perl/lonnet.pm:1.720	Wed Mar  8 16:47:15 2006
+++ loncom/lonnet/perl/lonnet.pm	Sun Mar 26 16:20:55 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.720 2006/03/08 21:47:15 albertel Exp $
+# $Id: lonnet.pm,v 1.721 2006/03/26 21:20:55 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4739,7 +4739,7 @@
 
 sub stat_file {
     my ($uri) = @_;
-    $uri = &clutter($uri);
+    $uri = '/'.&declutter($uri);
     my ($udom,$uname,$file,$dir);
     if ($uri =~ m-^/(uploaded|editupload)/-) {
 	($udom,$uname,$file) =
@@ -4760,6 +4760,7 @@
 
     my ($result) = &dirlist($file,$udom,$uname,$dir);
     my @stats = split('&', $result);
+    
     if($stats[0] ne 'empty' && $stats[0] ne 'no_such_dir') {
 	shift(@stats); #filename is first
 	return @stats;