Merge pull request #6974 from colintucker/fix-csv-bulk-loader

Fixes a bug with split file names during CSV import
This commit is contained in:
Damian Mooyman 2017-05-30 16:18:06 +12:00 committed by GitHub
commit b27ef810d4

View File

@ -169,7 +169,7 @@ class CsvBulkLoader extends BulkLoader
*/
protected function getNewSplitFileName()
{
return TEMP_FOLDER . '/' . uniqid('SilverStripe\\Dev\\BulkLoader', true) . '.csv';
return TEMP_FOLDER . DIRECTORY_SEPARATOR . uniqid(str_replace('\\', '_', static::class), true) . '.csv';
}
/**