diff --git a/COPYING.txt b/COPYING.txt index bf12fcf..a8b67c1 100644 --- a/COPYING.txt +++ b/COPYING.txt @@ -1,4 +1,4 @@ -Copyright © 2016-present Wubinworks. +Copyright © 2017-present Wubinworks. Each source file included in this distribution is licensed under OSL 3.0 diff --git a/Plugin/Framework/Webapi/ServiceInputProcessor.php b/Plugin/Framework/Webapi/ServiceInputProcessor.php index 7bad9f3..e5b9f5a 100644 --- a/Plugin/Framework/Webapi/ServiceInputProcessor.php +++ b/Plugin/Framework/Webapi/ServiceInputProcessor.php @@ -58,6 +58,7 @@ public function beforeConvertValue( $type ) { if (!is_array($data) + || empty($data) || $this->typeProcessor->isTypeSimple($type) || $this->typeProcessor->isTypeAny($type) ) { diff --git a/README.md b/README.md index 3664c9c..e7bfc82 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,10 @@ *No `preference` is used, so your Magento is still upgradable.* +#### Behavior difference + +*The official fix still allows dangerous parameter to go to `Setter`s, this patch does not allow it.* + ## Requirements Magento/Adobe Commerce 2.3 or 2.4 diff --git a/composer.json b/composer.json index c49a6f2..14aaaeb 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "magento/magento2-base": "~2.3.0 || ~2.4.0" }, "type": "magento2-module", - "version": "1.0.0", + "version": "1.0.1", "license": "OSL-3.0", "authors": [ {