⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.177
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ctaacademy
/
www
/
vendor
/
aws
/
aws-sdk-php
/
src
/
View File Name :
InputValidationMiddleware.php
service = $service; $this->nextHandler = $nextHandler; $this->mandatoryAttributeList = $mandatoryAttributeList; } public function __invoke(CommandInterface $cmd) { $nextHandler = $this->nextHandler; $op = $this->service->getOperation($cmd->getName())->toArray(); if (!empty($op['input']['shape'])) { $service = $this->service->toArray(); if (!empty($input = $service['shapes'][$op['input']['shape']])) { if (!empty($input['required'])) { foreach ($input['required'] as $key => $member) { if (in_array($member, $this->mandatoryAttributeList)) { $argument = is_string($cmd[$member]) ? trim($cmd[$member]) : $cmd[$member]; if ($argument === '' || $argument === null) { $commandName = $cmd->getName(); throw new \InvalidArgumentException( "The {$commandName} operation requires non-empty parameter: {$member}" ); } } } } } } return $nextHandler($cmd); } }