From 2039aed4e862c7e4bd5b3ded2d6a2d2d4e48d24c Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Fri, 30 Nov 2018 14:40:27 +0100 Subject: [PATCH] NTR - Fix product feed saving --- engine/Shopware/Models/ProductFeed/ProductFeed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/Shopware/Models/ProductFeed/ProductFeed.php b/engine/Shopware/Models/ProductFeed/ProductFeed.php index 91b2d620a6c..09613c8a856 100644 --- a/engine/Shopware/Models/ProductFeed/ProductFeed.php +++ b/engine/Shopware/Models/ProductFeed/ProductFeed.php @@ -1143,7 +1143,7 @@ public function sanitizeFilename() $this->fileName = basename($this->fileName); $extension = strtolower(pathinfo($this->fileName, PATHINFO_EXTENSION)); - if (in_array($extension, \Shopware_Controllers_Backend_MediaManager::$fileUploadBlacklist, true)) { + if (!empty($extension) && in_array($extension, \Shopware_Controllers_Backend_MediaManager::$fileUploadBlacklist, true)) { $this->fileName = str_replace('.' . $extension, '.invalid', strtolower($this->fileName)); Shopware()->Models()->flush($this); }