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

raeburn raeburn@source.lon-capa.org
Fri, 27 Aug 2010 17:21:01 -0000


raeburn		Fri Aug 27 17:21:01 2010 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  - Fix parentheses in regexp used for file listing for a file previously
    uploaded on a pre-2.10 server, when viewing current submissions on 2.10.
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.268 loncom/homework/inputtags.pm:1.269
--- loncom/homework/inputtags.pm:1.268	Mon Aug 23 03:05:12 2010
+++ loncom/homework/inputtags.pm	Fri Aug 27 17:21:01 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.268 2010/08/23 03:05:12 raeburn Exp $
+# $Id: inputtags.pm,v 1.269 2010/08/27 17:21:01 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -542,7 +542,7 @@
     my ($result,$header_shown,%okfiles,%rows,@bad_file_list);
     if ($uploadedfile) {
         my $url=$Apache::lonhomework::history{"resource.$part.$id.uploadedurl"};
-        my ($path,$name) = ($url =~ m{^/uploaded/\Q$cdom\E/\Q$cnum\E/(essayresponse/.+/)([^/]+))});
+        my ($path,$name) = ($url =~ m{^/uploaded/\Q$cdom\E/\Q$cnum\E/(essayresponse/.+/)([^/]+)});
         my ($status,$hashref,$error) =
             &current_file_info($url,$uploadedfile,$name,$path);
         if ($status eq 'ok') {