Skip to content

Commit 0cc2343

Browse files
committed
MAGETWO-95637: Validate file extension before upload
1 parent 8009700 commit 0cc2343

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function move($fileName, $renameFileOff = false)
167167
$filePath = $this->getTmpDir() . '/';
168168
} else {
169169
$filePath = '';
170-
}
170+
}
171171

172172
if (preg_match('/\bhttps?:\/\//i', $fileName, $matches)) {
173173
$url = str_replace($matches[0], '', $fileName);

0 commit comments

Comments
 (0)