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-12-11 11:59:20 +08:00
committed by Dan Poltawski
parent c15b286f88
commit 6357dd08b6
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1495,7 +1495,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;
}