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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 26 Aug 2005 19:44:17 -0000


albertel		Fri Aug 26 15:44:17 2005 EDT

  Modified files:              
    /loncom	lond 
    /loncom/publisher	loncfile.pm 
  Log:
  - : in a file name causes some suprising results BUG#4293, lets turn it off
  
  
  
Index: loncom/lond
diff -u loncom/lond:1.292 loncom/lond:1.293
--- loncom/lond:1.292	Fri Aug 26 15:40:38 2005
+++ loncom/lond	Fri Aug 26 15:44:15 2005
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # lond "LON Daemon" Server (port "LOND" 5663)
 #
-# $Id: lond,v 1.292 2005/08/26 19:40:38 albertel Exp $
+# $Id: lond,v 1.293 2005/08/26 19:44:15 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -59,7 +59,7 @@
 my $status='';
 my $lastlog='';
 
-my $VERSION='$Revision: 1.292 $'; #' stupid emacs
+my $VERSION='$Revision: 1.293 $'; #' stupid emacs
 my $remoteVERSION;
 my $currenthostid="default";
 my $currentdomainid;
@@ -5468,7 +5468,7 @@
 sub subscribe {
     my ($userinput,$clientip)=@_;
     my $result;
-    my ($cmd,$fname)=split(/:/,$userinput);
+    my ($cmd,$fname)=split(/:/,$userinput,2);
     my $ownership=&ishome($fname);
     if ($ownership eq 'owner') {
 # explitly asking for the current version?
Index: loncom/publisher/loncfile.pm
diff -u loncom/publisher/loncfile.pm:1.71 loncom/publisher/loncfile.pm:1.72
--- loncom/publisher/loncfile.pm:1.71	Tue Aug 16 11:52:08 2005
+++ loncom/publisher/loncfile.pm	Fri Aug 26 15:44:16 2005
@@ -9,7 +9,7 @@
 #  and displays a page showing the results of the action.
 #
 #
-# $Id: loncfile.pm,v 1.71 2005/08/16 15:52:08 raeburn Exp $
+# $Id: loncfile.pm,v 1.72 2005/08/26 19:44:16 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -321,9 +321,9 @@
 	$foundbad=1;
 	$dest=~s/\.//g;
     }
-    if  ($dest=~/[\#\?&%\"]/) {
+    if  ($dest=~/[\#\?&%\":]/) {
 	$foundbad=1;
-	$dest=~s/[\#\?&%\"]//g;
+	$dest=~s/[\#\?&%\":]//g;
     }
     if ($dest=~m|/|) {
 	my ($newpath)=($dest=~m|(.*)/|);