mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10459 from creative-commoners/pulls/5/rescue-master-no-dual-support
ENH Rescue Master Branch Commits: CSV BOM stripping is now handled internally by league/csv
This commit is contained in:
commit
934fafd29d
@ -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);
|
||||
}
|
||||
$csvReader->skipInputBOM();
|
||||
|
||||
$tabExtractor = function ($row, $rowOffset) {
|
||||
foreach ($row as &$item) {
|
||||
|
Loading…
Reference in New Issue
Block a user