mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
MDL-51375 excel output: more work to avoid invalid sheet names
This commit is contained in:
parent
dc3850fc20
commit
e8da65449a
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class MoodleExcelWorksheet {
|
|||
*/
|
||||
public function __construct($name, PHPExcel $workbook) {
|
||||
// Replace any characters in the name that Excel cannot cope with.
|
||||
$name = strtr($name, '[]*/\?:', ' ');
|
||||
$name = strtr(trim($name, "'"), '[]*/\?:', ' ');
|
||||
// Shorten the title if necessary.
|
||||
$name = core_text::substr($name, 0, 31);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue