Fixes a bug with split file names during CSV import

This commit is contained in:
Colin Tucker 2017-05-29 16:08:23 +10:00
parent 77444ca28d
commit db59e51c4a

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';
}
/**