--- loncom/homework/essayresponse.pm 2003/01/24 18:30:54 1.20
+++ loncom/homework/essayresponse.pm 2003/01/24 20:40:37 1.23
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# essay (ungraded) style responses
#
-# $Id: essayresponse.pm,v 1.20 2003/01/24 18:30:54 www Exp $
+# $Id: essayresponse.pm,v 1.23 2003/01/24 20:40:37 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -49,8 +49,15 @@ sub start_essayresponse {
my $ncol= &Apache::lonnet::EXT("resource.$part".'_'."$id.maxcollaborators");
my $coll= &HTML::Entities::encode($Apache::lonhomework::history{"resource.$part.$id.collaborators"});
my $uploadedfiletypes= &Apache::lonnet::EXT("resource.$part".'_'."$id.uploadedfiletypes");
+ $uploadedfiletypes=~s/[^\w\,]//g;
my $uploadedfile= &HTML::Entities::encode($Apache::lonhomework::history{"resource.$part.$id.uploadedfile"});
$result='
'.
+ ''.
+ ' Submit entries below as answer to receive credit '. + ''. + ' Save entries below as a draft answer (not submitting them for credit yet) '. + ' |
'.
'Collaborators: Allowed filetypes: '.$uploadedfiletypes.' '; if ($uploadedfile) { $result.='Currently submitted: '.$uploadedfile.''; + &Apache::lonnet::tokenwrapper($Apache::lonhomework::history{"resource.$part.$id.uploadedurl"}).'"> '.$uploadedfile.''; } else { $result.='(Hand in a file you have prepared on your computer)'; } $result.=' |
'.
- ''.
- ' Submit text below as answer to receive credit '. - ''. - ' Save text below as a draft answer (not submitting it for credit yet) '. - ' |