module-braintree-magento2 icon indicating copy to clipboard operation
module-braintree-magento2 copied to clipboard

Fix: adds a defense to avoid attempting an unserialize action on an array

Open loneken79 opened this issue 2 years ago • 0 comments

This case happens when dumping config from magento 2 with an empty braintree config Then $countryCardTypes is save as an empty array in app/etc/config.php (and not a string of an empty array) Magento 2 Import config does not fails But when the framework try to read the config (when users access the cart page) then an unserialize is attempted which leads to an Exception

loneken79 avatar Dec 13 '22 11:12 loneken79