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 : 3.133.129.97 | Time @ Server : 19 Oct 2024 10:29:17
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/magento/framework/Config/Test/Unit/Data/

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

File Path : /home/webmaster/firofichi/www/vendor/magento/framework/Config/Test/Unit/Data/ConfigDataTest.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Config\Test\Unit\Data; use Magento\Framework\Config\Data\ConfigData; class ConfigDataTest extends \PHPUnit\Framework\TestCase { public function testSet() { $fileKey = 'testFileKey'; $expectedValue = [ 'test' => [ 'path' => [ 'value1' => 'val1', 'value2' => 'val4', 'value3' => 'val3', ] ] ]; $configData = new ConfigData($fileKey); $configData->set('test/path/value1', 'val1'); $configData->set('test/path/value2', 'val2'); $configData->set('test/path/value3', 'val3'); $configData->set('test/path/value2', 'val4'); $this->assertEquals($expectedValue, $configData->getData()); $this->assertEquals($fileKey, $configData->getFileKey()); } /** * @param string $key * @param string $expectedException * @dataProvider setWrongKeyDataProvider */ public function testSetWrongKey($key, $expectedException) { $configData = new ConfigData('testKey'); $this->expectException('InvalidArgumentException'); $this->expectExceptionMessage($expectedException); $configData->set($key, 'value'); } /** * @return array */ public function setWrongKeyDataProvider() { return [ 'segment is empty' => [ '/test/test/test', "Path '/test/test/test' is invalid. It cannot be empty nor start or end with '/'" ], 'key is empty' => [ '', "Path '' is invalid. It cannot be empty nor start or end with '/'" ], 'access by empty value key' => [ 'test/', "Path 'test/' is invalid. It cannot be empty nor start or end with '/'" ] ]; } }