From 34709ac642d554aa1824892059186dd329db744b Mon Sep 17 00:00:00 2001 From: Mark Lewis Date: Wed, 25 Aug 2021 18:13:20 -0700 Subject: [PATCH] Merge pull request from GHSA-xm9f-vxmx-4m58 Co-authored-by: Mark Lewis --- app/code/core/Mage/Dataflow/Model/Convert/Adapter/Io.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/Dataflow/Model/Convert/Adapter/Io.php b/app/code/core/Mage/Dataflow/Model/Convert/Adapter/Io.php index 60cdb9c98bc..32a33805053 100644 --- a/app/code/core/Mage/Dataflow/Model/Convert/Adapter/Io.php +++ b/app/code/core/Mage/Dataflow/Model/Convert/Adapter/Io.php @@ -49,7 +49,7 @@ public function getResource($forWrite = false) $isError = false; $ioConfig = $this->getVars(); - switch ($this->getVar('type', 'file')) { + switch (strtolower($this->getVar('type', 'file'))) { case 'file': //validate export/import path $path = rtrim($ioConfig['path'], '\\/')