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

/home/webmaster/firofichi/www/vendor/magento/framework/Validator/Entity/

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

File Path : /home/webmaster/firofichi/www/vendor/magento/framework/Validator/Entity/Properties.php

<?php /** * Validates properties of entity (\Magento\Framework\DataObject). * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Validator\Entity; use Magento\Framework\DataObject; use Magento\Framework\Model\AbstractModel; class Properties extends \Magento\Framework\Validator\AbstractValidator { /** * @var string[] */ protected $_readOnlyProperties = []; /** * Set read-only properties. * * @param string[] $readOnlyProperties * @return void */ public function setReadOnlyProperties(array $readOnlyProperties) { $this->_readOnlyProperties = $readOnlyProperties; } /** * Successful if $value is \Magento\Framework\Model\AbstractModel an all condition are fulfilled. * * If read-only properties are set than $value mustn't have changes in them. * * @param AbstractModel $value * @return bool * @throws \InvalidArgumentException when $value is not instanceof \Magento\Framework\DataObject * @api */ public function isValid($value) { $this->_clearMessages(); if (!$value instanceof AbstractModel) { throw new \InvalidArgumentException('Instance of \Magento\Framework\Model\AbstractModel is expected.'); } if ($this->_readOnlyProperties) { if (!$value->hasDataChanges()) { return true; } foreach ($this->_readOnlyProperties as $property) { if ($this->_hasChanges($value->getData($property), $value->getOrigData($property))) { $this->_messages[__CLASS__] = [ (string)new \Magento\Framework\Phrase("Read-only property cannot be changed.") ]; break; } } } return !count($this->_messages); } /** * Compare two values as numbers and as other types * * @param mixed $firstValue * @param mixed $secondValue * @return bool */ protected function _hasChanges($firstValue, $secondValue) { if ($firstValue === $secondValue || $firstValue == $secondValue && is_numeric( $firstValue ) && is_numeric( $secondValue ) ) { return false; } return true; } }