Skip to content

Commit bb4572f

Browse files
AC-11831 improve product custom option validation
1 parent 04610b9 commit bb4572f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/File/ValidatorInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private function validatePath(array $optionValuePath): bool
150150
$pathInfo = $this->ioFile->getPathInfo($path);
151151

152152
if (isset($pathInfo['extension'])
153-
&& ($pathInfo['extension'] === '' || !$this->fileValidator->isValid($pathInfo['extension']))
153+
&& (empty($pathInfo['extension']) || !$this->fileValidator->isValid($pathInfo['extension']))
154154
) {
155155
return false;
156156
}

0 commit comments

Comments
 (0)