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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 10 Jun 2004 18:20:16 -0000


albertel		Thu Jun 10 14:20:16 2004 EDT

  Modified files:              
    /loncom/publisher	loncfile.pm 
  Log:
  - " causes alot of things to go breaky. (BUG#3067 at least)
  
  
Index: loncom/publisher/loncfile.pm
diff -u loncom/publisher/loncfile.pm:1.56 loncom/publisher/loncfile.pm:1.57
--- loncom/publisher/loncfile.pm:1.56	Wed May 26 18:31:30 2004
+++ loncom/publisher/loncfile.pm	Thu Jun 10 14:20:16 2004
@@ -9,7 +9,7 @@
 #  and displays a page showing the results of the action.
 #
 #
-# $Id: loncfile.pm,v 1.56 2004/05/26 22:31:30 albertel Exp $
+# $Id: loncfile.pm,v 1.57 2004/06/10 18:20:16 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -291,7 +291,7 @@
 sub cleanDest {
     my ($request,$dest)=@_;
     #remove bad characters
-    if  ($dest=~/[\#\?&%]/) {
+    if  ($dest=~/[\#\?&%\"]/) {
 	$request->print("<p><font color=\"red\">".&mt('Invalid characters in requested name have been removed.')."</font></p>");
 	$dest=~s/[\#\?&%]//g;
     }