File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 47
47
*/
48
48
class Product extends AbstractEntity
49
49
{
50
+ private const COL_NAME_FORMAT = '/[\x00-\x1F\x7F]/ ' ;
50
51
private const DEFAULT_GLOBAL_MULTIPLE_VALUE_SEPARATOR = ', ' ;
51
52
public const CONFIG_KEY_PRODUCT_TYPES = 'global/importexport/import_product_types ' ;
52
53
private const HASH_ALGORITHM = 'sha256 ' ;
@@ -1632,7 +1633,7 @@ protected function _saveProducts()
1632
1633
}
1633
1634
1634
1635
// remove null byte character
1635
- $ rowData [self ::COL_NAME ] = preg_replace (' /[\x00-\x1F\x7F]/ ' , '' , $ rowData [self ::COL_NAME ]);
1636
+ $ rowData [self ::COL_NAME ] = preg_replace (self :: COL_NAME_FORMAT , '' , $ rowData [self ::COL_NAME ]);
1636
1637
1637
1638
$ rowSku = $ rowData [self ::COL_SKU ];
1638
1639
$ rowSkuNormalized = mb_strtolower ($ rowSku );
You can’t perform that action at this time.
0 commit comments