From 8d1c9fe666bbf2f4fa9005ae75a3ae5f9708c6c3 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 6 Jun 2017 12:01:19 +0300 Subject: [PATCH] fix export --- application/Espo/Core/Export/Xlsx.php | 4 ++++ 1 file changed, 4 insertions(+) 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'];