Skip to content

Commit 04610b9

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

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
*/
2121
class ValidatorInfo extends Validator
2222
{
23-
/**
24-
* @var string
25-
*/
26-
private const PATH_PREFIX = 'custom_options';
27-
2823
/**
2924
* @var Database
3025
*/
@@ -152,10 +147,6 @@ public function validate($optionValue, $option)
152147
private function validatePath(array $optionValuePath): bool
153148
{
154149
foreach ([$optionValuePath['quote_path'], $optionValuePath['order_path']] as $path) {
155-
if (strpos($path, self::PATH_PREFIX) !== 0) {
156-
return false;
157-
}
158-
159150
$pathInfo = $this->ioFile->getPathInfo($path);
160151

161152
if (isset($pathInfo['extension'])

0 commit comments

Comments
 (0)