We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a21bf61 + 2039aed commit 312dd6bCopy full SHA for 312dd6b
engine/Shopware/Models/ProductFeed/ProductFeed.php
@@ -1143,7 +1143,7 @@ public function sanitizeFilename()
1143
$this->fileName = basename($this->fileName);
1144
$extension = strtolower(pathinfo($this->fileName, PATHINFO_EXTENSION));
1145
1146
- if (in_array($extension, \Shopware_Controllers_Backend_MediaManager::$fileUploadBlacklist, true)) {
+ if (!empty($extension) && in_array($extension, \Shopware_Controllers_Backend_MediaManager::$fileUploadBlacklist, true)) {
1147
$this->fileName = str_replace('.' . $extension, '.invalid', strtolower($this->fileName));
1148
1149
// To prevent PrePersist event
0 commit comments