mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENH CSV BOM stripping is now handled internally by league/csv
This commit is contained in:
parent
2ae52120c1
commit
a666814a80
@ -76,14 +76,7 @@ class CsvBulkLoader extends BulkLoader
|
||||
$filepath = Director::getAbsFile($filepath);
|
||||
$csvReader = Reader::createFromPath($filepath, 'r');
|
||||
$csvReader->setDelimiter($this->delimiter);
|
||||
|
||||
// league/csv 9
|
||||
if (method_exists($csvReader, 'skipInputBOM')) {
|
||||
$csvReader->skipInputBOM();
|
||||
// league/csv 8
|
||||
} else {
|
||||
$csvReader->stripBom(true);
|
||||
}
|
||||
|
||||
$tabExtractor = function ($row, $rowOffset) {
|
||||
foreach ($row as &$item) {
|
||||
|
Loading…
Reference in New Issue
Block a user