Skip to content

Commit

Permalink
NTR - Fix product feed saving
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Nov 30, 2018
1 parent bc9fee5 commit 2039aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/Shopware/Models/ProductFeed/ProductFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2039aed

Please sign in to comment.