Skip to content

Commit 7bdfa80

Browse files
committed
AC-10815 - API Input validation
1 parent 717107b commit 7bdfa80

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/internal/Magento/Framework/Webapi/ServiceInputProcessor.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,8 @@ private function getConstructorData(string $className, array $data): array
248248
$parameterType = $this->typeProcessor->getParamType($parameter);
249249

250250
try {
251-
if (
252-
ltrim($parameterType, "\\") === SimplexmlElement::Class &&
253-
strtolower($parameter->getName()) === "sourcedata"
254-
) {
251+
if (ltrim($parameterType, "\\") === SimplexmlElement::Class &&
252+
strtolower($parameter->getName()) === "sourcedata") {
255253
throw new InputException(new Phrase('Invalid input.'));
256254
}
257255

0 commit comments

Comments
 (0)