Skip to content

Commit c62f49d

Browse files
committed
AC-6958: admin product import improvements
1 parent 26d62b2 commit c62f49d

File tree

1 file changed

+3
-0
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+3
-0
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,9 @@ protected function _saveProducts()
16311631
$bunch[$rowNum][self::URL_KEY] = $rowData[self::URL_KEY] = $urlKey;
16321632
}
16331633

1634+
// remove null byte character
1635+
$rowData[self::COL_NAME] = preg_replace('/[\x00-\x1F\x7F]/', '', $rowData[self::COL_NAME]);
1636+
16341637
$rowSku = $rowData[self::COL_SKU];
16351638
$rowSkuNormalized = mb_strtolower($rowSku);
16361639

0 commit comments

Comments
 (0)