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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 01 Apr 2005 19:57:23 -0000


albertel		Fri Apr  1 14:57:23 2005 EDT

  Modified files:              
    /loncom/interface	lonsearchcat.pm 
  Log:
  - securiity clean on $status was to restrictve, revert to just removing any directory sepeartors
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.241 loncom/interface/lonsearchcat.pm:1.242
--- loncom/interface/lonsearchcat.pm:1.241	Tue Mar 22 16:15:42 2005
+++ loncom/interface/lonsearchcat.pm	Fri Apr  1 14:57:23 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.241 2005/03/22 21:15:42 matthew Exp $
+# $Id: lonsearchcat.pm,v 1.242 2005/04/01 19:57:23 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2493,8 +2493,8 @@
                 delete ($Server_status{$server});
                 next;
             }
-            $status=~/^([\.\w]+)$/; 
-       	    my $datafile=$r->dir_config('lonDaemons').'/tmp/'.$1;
+            $status=~s|/||g; 
+       	    my $datafile=$r->dir_config('lonDaemons').'/tmp/'.$status;
             if (-e $datafile && ! -e "$datafile.end") {
                 &update_status($r,&mt('Receiving results from [_1]',$server));
                 next;