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.
1 parent 04610b9 commit bb4572fCopy full SHA for bb4572f
app/code/Magento/Catalog/Model/Product/Option/Type/File/ValidatorInfo.php
@@ -150,7 +150,7 @@ private function validatePath(array $optionValuePath): bool
150
$pathInfo = $this->ioFile->getPathInfo($path);
151
152
if (isset($pathInfo['extension'])
153
- && ($pathInfo['extension'] === '' || !$this->fileValidator->isValid($pathInfo['extension']))
+ && (empty($pathInfo['extension']) || !$this->fileValidator->isValid($pathInfo['extension']))
154
) {
155
return false;
156
}
0 commit comments