[LON-CAPA-cvs] cvs: loncom /homework essayresponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 01 Aug 2006 14:04:33 -0000


albertel		Tue Aug  1 10:04:33 2006 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  - be more lenient abot the filename input
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.72 loncom/homework/essayresponse.pm:1.73
--- loncom/homework/essayresponse.pm:1.72	Tue May 30 08:45:36 2006
+++ loncom/homework/essayresponse.pm	Tue Aug  1 10:04:32 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.72 2006/05/30 12:45:36 www Exp $
+# $Id: essayresponse.pm,v 1.73 2006/08/01 14:04:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -168,7 +168,7 @@
 	
 	my @submitted_files = ($files);
 	if ( $which eq 'portfiles' ) {
-	    @submitted_files = split(/,/,$files);
+	    @submitted_files = split(/\s*,\s*/,$files);
 	}
 
 	my $uploadedfiletypes= &Apache::lonnet::EXT("resource.$part".'_'."$id.uploadedfiletypes");