Skip to content

Commit b9d39ca

Browse files
committed
MC-21630: Controller behavior minor changes
1 parent bd3fe92 commit b9d39ca

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/ImportExport/Controller/Adminhtml/Export/File

1 file changed

+1
-1
lines changed

app/code/Magento/ImportExport/Controller/Adminhtml/Export/File/Download.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(
6060
public function execute()
6161
{
6262
$fileName = $this->getRequest()->getParam('filename');
63-
if (empty($fileName) || preg_match('/\.\.(\\\|\/)/', $fileName)) {
63+
if (empty($fileName) || preg_match('/\.\.(\\\|\/)/', $fileName) !== 0) {
6464
throw new LocalizedException(__('Please provide valid export file name'));
6565
}
6666
try {

0 commit comments

Comments
 (0)