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.216.95.197 | Time @ Server : 19 Oct 2024 08:36:05
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

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

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/XsdTest.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Config\Test\Unit; class XsdTest extends \PHPUnit\Framework\TestCase { /** * @param string $xsdFile * @param string $invalidXmlFile * @param int $expectedErrorsQty * @dataProvider invalidXmlFileDataProvider */ public function testInvalidXmlFile($xsdFile, $invalidXmlFile, $expectedErrorsQty) { if (!function_exists('libxml_set_external_entity_loader')) { $this->markTestSkipped('Skipped on HHVM. Will be fixed in MAGETWO-45033'); } $dom = new \DOMDocument(); $dom->load(__DIR__ . "/_files/{$invalidXmlFile}"); $schema = __DIR__ . "/../../etc/{$xsdFile}"; libxml_use_internal_errors(true); $result = \Magento\Framework\Config\Dom::validateDomDocument($dom, $schema); $errorsQty = count($result); libxml_use_internal_errors(false); if ($expectedErrorsQty > 0) { $this->assertNotEmpty($result); } $this->assertEquals($expectedErrorsQty, $errorsQty); } /** * @return array */ public function invalidXmlFileDataProvider() { return [['view.xsd', 'view_invalid.xml', 8], ['theme.xsd', 'theme_invalid.xml', 1]]; } }