[LON-CAPA-cvs] cvs: loncom /interface londocs.pm

www lon-capa-cvs@mail.lon-capa.org
Thu, 23 Jan 2003 19:00:07 -0000


www		Thu Jan 23 14:00:07 2003 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  Escape colons in titles of imported resources.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.45 loncom/interface/londocs.pm:1.46
--- loncom/interface/londocs.pm:1.45	Mon Jan 20 12:30:31 2003
+++ loncom/interface/londocs.pm	Thu Jan 23 14:00:06 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.45 2003/01/20 17:30:31 www Exp $
+# $Id: londocs.pm,v 1.46 2003/01/23 19:00:06 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -166,6 +166,7 @@
                         my $ext='false';
                         if ($url=~/^http\:\/\//) { $ext='true'; }
                         $url=~s/\:/\:/g;
+                        $name=~s/\:/\:/g;
                         $Apache::lonratedt::resources[$idx]=
                            $name.':'.$url.':'.$ext.':normal:res';
 	             }