Commit c917ad2b by lmf

临时屏蔽产品图片验证功能

parent 08fd8d44
...@@ -58,7 +58,8 @@ class ImageContentValidator implements ImageContentValidatorInterface ...@@ -58,7 +58,8 @@ class ImageContentValidator implements ImageContentValidatorInterface
throw new InputException(new Phrase('The image content must be valid base64 encoded data.')); throw new InputException(new Phrase('The image content must be valid base64 encoded data.'));
} }
$sourceMimeType = $imageProperties['mime']; $sourceMimeType = $imageProperties['mime'];
if ($sourceMimeType != $imageContent->getType() || !$this->isMimeTypeValid($sourceMimeType)) { //if ($sourceMimeType != $imageContent->getType() || !$this->isMimeTypeValid($sourceMimeType)) {
if (!$this->isMimeTypeValid($sourceMimeType)) {
throw new InputException(new Phrase('The image MIME type is not valid or not supported.')); throw new InputException(new Phrase('The image MIME type is not valid or not supported.'));
} }
if (!$this->isNameValid($imageContent->getName())) { if (!$this->isNameValid($imageContent->getName())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment