Kernel : Linux vmw02p.internet-indee.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64
Disable function : NONE
Safe mode : OFF
Host : firofichi.it | Server ip : 5.196.164.15 | Your ip : 18.117.105.74 | Time @ Server : 19 Oct 2024 06:27:52
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/magento/framework/Setup/Option/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/webmaster/firofichi/www/vendor/magento/framework/Setup/Option/MultiSelectConfigOption.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Setup\Option; /** * Multi-select option in deployment config tool */ class MultiSelectConfigOption extends AbstractConfigOption { /**#@+ * Frontend input types */ const FRONTEND_WIZARD_CHECKBOX = 'checkbox'; const FRONTEND_WIZARD_MULTISELECT = 'multiselect'; /**#@- */ /**#@- */ private $selectOptions; /** * Constructor * * @param string $name * @param string $frontendType * @param array $selectOptions * @param string $configPath * @param string $description * @param array $defaultValue * @param string|array|null $shortCut * @throws \InvalidArgumentException */ public function __construct( $name, $frontendType, array $selectOptions, $configPath, $description = '', array $defaultValue = [], $shortCut = null ) { if ($frontendType != self::FRONTEND_WIZARD_MULTISELECT && $frontendType != self::FRONTEND_WIZARD_CHECKBOX) { throw new \InvalidArgumentException( "Frontend input type has to be 'multiselect', 'textarea' or 'checkbox'." ); } if (!$selectOptions) { throw new \InvalidArgumentException('Select options can\'t be empty.'); } $this->selectOptions = $selectOptions; parent::__construct( $name, $frontendType, self::VALUE_REQUIRED | self::VALUE_IS_ARRAY, $configPath, $description, $defaultValue, $shortCut ); } /** * Get available options * * @return array */ public function getSelectOptions() { return $this->selectOptions; } /** * Validates input data * * @param mixed $data * @return void * @throws \InvalidArgumentException */ public function validate($data) { if (is_array($data)) { foreach ($data as $value) { if (!in_array($value, $this->getSelectOptions())) { throw new \InvalidArgumentException( "Value specified for '{$this->getName()}' is not supported: '{$value}'" ); } } } parent::validate($data); } }