Skip to content

Commit

Permalink
Escaped csv formulas (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcop1 committed Apr 21, 2023
1 parent 220a920 commit 4e0105c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CustomerList/Exporter/AbstractExporter.php
Expand Up @@ -18,6 +18,7 @@
use CustomerManagementFrameworkBundle\Model\CustomerInterface;
use Pimcore\Model\DataObject\ClassDefinition;
use Pimcore\Model\DataObject\Listing\Concrete;
use Pimcore\Model\Element\Service;

abstract class AbstractExporter implements ExporterInterface
{
Expand Down Expand Up @@ -149,6 +150,8 @@ public function getExportData()
}
}

$row[self::COLUMNS] = Service::escapeCsvRecord($row[self::COLUMNS]);
$row[self::SEGMENT_IDS] = Service::escapeCsvRecord($row[self::SEGMENT_IDS]);
$rows[] = $row;
}

Expand Down

0 comments on commit 4e0105c

Please sign in to comment.