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

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 26 Jan 2004 21:58:34 -0000


albertel		Mon Jan 26 16:58:34 2004 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - BUG#2645, files starting with res were getting the res stripped off the front.
  - to go into 1.1.1
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.463 loncom/lonnet/perl/lonnet.pm:1.464
--- loncom/lonnet/perl/lonnet.pm:1.463	Thu Jan 15 14:41:00 2004
+++ loncom/lonnet/perl/lonnet.pm	Mon Jan 26 16:58:34 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.463 2004/01/15 19:41:00 albertel Exp $
+# $Id: lonnet.pm,v 1.464 2004/01/26 21:58:34 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4459,7 +4459,7 @@
     $location=$file;
   } else {
     $file=~s/^$perlvar{'lonDocRoot'}//;
-    $file=~s:^/*res::;
+    $file=~s:^/res/:/:;
     if ( !( $file =~ m:^/:) ) {
       $location = $dir. '/'.$file;
     } else {