File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 48
48
*/
49
49
class Product extends AbstractEntity
50
50
{
51
+ private const COL_NAME_FORMAT = '/[\x00-\x1F\x7F]/ ' ;
51
52
private const DEFAULT_GLOBAL_MULTIPLE_VALUE_SEPARATOR = ', ' ;
52
53
public const CONFIG_KEY_PRODUCT_TYPES = 'global/importexport/import_product_types ' ;
53
54
@@ -1624,6 +1625,10 @@ protected function _saveProducts()
1624
1625
// the bunch of products will pass for the event with url_key column.
1625
1626
$ bunch [$ rowNum ][self ::URL_KEY ] = $ rowData [self ::URL_KEY ] = $ urlKey ;
1626
1627
}
1628
+ if (!empty ($ rowData [self ::COL_NAME ])) {
1629
+ // remove null byte character
1630
+ $ rowData [self ::COL_NAME ] = preg_replace (self ::COL_NAME_FORMAT , '' , $ rowData [self ::COL_NAME ]);
1631
+ }
1627
1632
$ rowSku = $ rowData [self ::COL_SKU ];
1628
1633
if (null === $ rowSku ) {
1629
1634
$ this ->getErrorAggregator ()->addRowToSkip ($ rowNum );
You can’t perform that action at this time.
0 commit comments