diff --git a/application/Espo/Core/Export/Xlsx.php b/application/Espo/Core/Export/Xlsx.php index 7127fa413d..abacda6eb5 100644 --- a/application/Espo/Core/Export/Xlsx.php +++ b/application/Espo/Core/Export/Xlsx.php @@ -133,6 +133,10 @@ class Xlsx extends \Espo\Core\Injectable } $sheetName = substr($exportName, 0, 30); + $badCharList = ['*', ':', '/', '\\', '?', '[', ']']; + foreach ($badCharList as $badChar) { + $sheetName = str_replace($badCharList, ' ', $sheetName); + } $sheet->setTitle($sheetName); $fieldList = $params['fieldList'];