--- loncom/interface/statistics/lonproblemanalysis.pm 2004/01/28 14:53:34 1.62
+++ loncom/interface/statistics/lonproblemanalysis.pm 2004/01/30 16:31:36 1.63
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonproblemanalysis.pm,v 1.62 2004/01/28 14:53:34 matthew Exp $
+# $Id: lonproblemanalysis.pm,v 1.63 2004/01/30 16:31:36 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1313,18 +1313,18 @@ sub build_foil_index {
if (@Concepts > 1) {
$table .= '
'.
''.$conceptindex.' | '.
- ''.$concept->{'name'}.' | '.
+ ''.&HTML::Entities::encode($concept->{'name'}).' | '.
''.$foilindex++.' | '.
- ''.$Foildata{$firstfoil}->{'name'}.' | '.
- ''.$Foildata{$firstfoil}->{'text'}.' | '.
- ''.$Foildata{$firstfoil}->{'value'}.' | '.
+ ''.&HTML::Entities::encode($Foildata{$firstfoil}->{'name'}).' | '.
+ ''.&HTML::Entities::encode($Foildata{$firstfoil}->{'text'}).' | '.
+ ''.&HTML::Entities::encode($Foildata{$firstfoil}->{'value'}).' | '.
"
\n";
} else {
$table .= ''.
''.$foilindex++.' | '.
- ''.$Foildata{$firstfoil}->{'name'}.' | '.
- ''.$Foildata{$firstfoil}->{'text'}.' | '.
- ''.$Foildata{$firstfoil}->{'value'}.' | '.
+ ''.&HTML::Entities::encode($Foildata{$firstfoil}->{'name'}).' | '.
+ ''.&HTML::Entities::encode($Foildata{$firstfoil}->{'text'}).' | '.
+ ''.&HTML::Entities::encode($Foildata{$firstfoil}->{'value'}).' | '.
"
\n";
}
foreach my $foilid (@FoilsInConcept) {
@@ -1333,16 +1333,16 @@ sub build_foil_index {
' | '.
' | '.
''.$foilindex.' | '.
- ''.$Foildata{$foilid}->{'name'}.' | '.
- ''.$Foildata{$foilid}->{'text'}.' | '.
- ''.$Foildata{$foilid}->{'value'}.' | '.
+ ''.&HTML::Entities::encode($Foildata{$foilid}->{'name'}).' | '.
+ ''.&HTML::Entities::encode($Foildata{$foilid}->{'text'}).' | '.
+ ''.&HTML::Entities::encode($Foildata{$foilid}->{'value'}).' | '.
"\n";
} else {
$table .= ''.
''.$foilindex.' | '.
- ''.$Foildata{$foilid}->{'name'}.' | '.
- ''.$Foildata{$foilid}->{'text'}.' | '.
- ''.$Foildata{$foilid}->{'value'}.' | '.
+ ''.&HTML::Entities::encode($Foildata{$foilid}->{'name'}).' | '.
+ ''.&HTML::Entities::encode($Foildata{$foilid}->{'text'}).' | '.
+ ''.&HTML::Entities::encode($Foildata{$foilid}->{'value'}).' | '.
"
\n";
}
} continue {
@@ -1367,7 +1367,7 @@ sub build_option_index {
''.
''.
(' 'x4).' | '.
- ''.$option.' | '.
+ ''.&HTML::Entities::encode($option).' | '.
"
\n");
}
shift(@Rows); # Throw away 'correct option chosen' color