Skip to content

Commit 312dd6b

Browse files
committed
Merge pull request #7186 in SW/shopware from ntr/5.5/fix-product-feed to 5.5
* commit '2039aed4e862c7e4bd5b3ded2d6a2d2d4e48d24c': NTR - Fix product feed saving
2 parents a21bf61 + 2039aed commit 312dd6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/Shopware/Models/ProductFeed/ProductFeed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ public function sanitizeFilename()
11431143
$this->fileName = basename($this->fileName);
11441144
$extension = strtolower(pathinfo($this->fileName, PATHINFO_EXTENSION));
11451145

1146-
if (in_array($extension, \Shopware_Controllers_Backend_MediaManager::$fileUploadBlacklist, true)) {
1146+
if (!empty($extension) && in_array($extension, \Shopware_Controllers_Backend_MediaManager::$fileUploadBlacklist, true)) {
11471147
$this->fileName = str_replace('.' . $extension, '.invalid', strtolower($this->fileName));
11481148

11491149
// To prevent PrePersist event

0 commit comments

Comments
 (0)