--- loncom/homework/response.pm 2009/03/06 16:13:29 1.211 +++ loncom/homework/response.pm 2009/03/13 00:34:20 1.212 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # various response type definitons response definition # -# $Id: response.pm,v 1.211 2009/03/06 16:13:29 raeburn Exp $ +# $Id: response.pm,v 1.212 2009/03/13 00:34:20 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -283,7 +283,7 @@ sub check_for_previous { my %previous; $previous{'used'} = 0; foreach my $key (sort(keys(%Apache::lonhomework::history))) { - if ($key =~ /resource\.$partid\.$id\.submission$/) { + if ($key =~ /resource\.\Q$partid\E\.\Q$id\E\.submission$/) { if ( $last && $key =~ /^(\d+):/ ) { next if ($1 >= $last); }