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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 17 May 2002 21:02:45 -0000


albertel		Fri May 17 17:02:45 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - hreflocation understands CSTR space now
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.224 loncom/lonnet/perl/lonnet.pm:1.225
--- loncom/lonnet/perl/lonnet.pm:1.224	Fri May 17 15:52:42 2002
+++ loncom/lonnet/perl/lonnet.pm	Fri May 17 17:02:45 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.224 2002/05/17 19:52:42 albertel Exp $
+# $Id: lonnet.pm,v 1.225 2002/05/17 21:02:45 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2763,6 +2763,7 @@
     unless (($file=~/^http:\/\//i) || ($file=~/^\//)) {
        my $finalpath=filelocation($dir,$file);
        $finalpath=~s/^\/home\/httpd\/html//;
+       $finalpath=~s-/home/(\w+)/public_html/-/~$1/-;
        return $finalpath;
     } else {
        return $file;