--- loncom/interface/statistics/lonproblemstatistics.pm 2003/11/11 22:14:28 1.61 +++ loncom/interface/statistics/lonproblemstatistics.pm 2003/12/08 19:37:44 1.62 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemstatistics.pm,v 1.61 2003/11/11 22:14:28 matthew Exp $ +# $Id: lonproblemstatistics.pm,v 1.62 2003/12/08 19:37:44 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -51,6 +51,7 @@ package Apache::lonproblemstatistics; use strict; use Apache::lonnet(); +use Apache::loncommon(); use Apache::lonhtmlcommon; use Apache::loncoursedata; use Apache::lonstatistics; @@ -529,7 +530,9 @@ sub output_excel { if (length($sheetname) > 31) { $sheetname = substr($sheetname,0,31); } - $excel_sheet = $excel_workbook->addworksheet($sheetname); + $excel_sheet = $excel_workbook->addworksheet( + &Apache::loncommon::clean_excel_name($sheetname) + ); # # Put the course description in the header $excel_sheet->write($rows_output,$cols_output++,