Merge branch 'MDL-51375' of git://github.com/timhunt/moodle

This commit is contained in:
Dan Poltawski 2015-10-12 17:01:41 +01:00
commit 576a0cc3ab

View File

@ -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);