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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 02 Mar 2007 23:20:19 -0000


albertel		Fri Mar  2 18:20:19 2007 EDT

  Modified files:              
    /loncom/publisher	lonpublisher.pm 
  Log:
  - protexting username...
  
  
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.221 loncom/publisher/lonpublisher.pm:1.222
--- loncom/publisher/lonpublisher.pm:1.221	Fri Mar  2 18:18:19 2007
+++ loncom/publisher/lonpublisher.pm	Fri Mar  2 18:20:17 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.221 2007/03/02 23:18:19 albertel Exp $
+# $Id: lonpublisher.pm,v 1.222 2007/03/02 23:20:17 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -418,7 +418,7 @@
         }
     }
     if ($url=~/^(?:http|https|ftp)\:\/\//) { return $url; }
-    $url=~s/\~$cuname/res\/$cudom\/$cuname/;
+    $url=~s{\Q~$cuname\E}{res/$cudom/$cuname};
     return $url;
 }