MDL-36845 excel export: don't output invalid sheet names.

We should clean any proposed worksheet name, to remove the characters
that Excel does not allow.
This commit is contained in:
Tim Hunt
2012-11-30 14:57:03 +00:00
parent 15b3a4398a
commit f196602737
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1505,7 +1505,7 @@ class table_spreadsheet_export_format_parent extends table_default_export_format
}
function start_table($sheettitle) {
$this->worksheet =& $this->workbook->add_worksheet($sheettitle);
$this->worksheet = $this->workbook->add_worksheet($sheettitle);
$this->rownum=0;
}