[ SYSTEM ]: Windows NT SWD-ELEARN-11 10.0 build 20348 (Windows Server 2016) AMD64
[ SERVER ]: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.9 | PHP: 7.3.9
[ USER ]: Elearn | IP: 10.201.204.156
GEFORCE FILE MANAGER
/
C:
/
xampp
/
htdocs
/
Ajaji
/
backup
/
libraries
/
vendor
/
brumann
/
polyfill-unserialize
/
src
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 Unserialize.php
1,196 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Unserialize.php
<?php namespace Brumann\Polyfill; final class Unserialize { /** * @see https://secure.php.net/manual/en/function.unserialize.php * * @param string $serialized Serialized data * @param array $options Associative array containing options * * @return mixed */ public static function unserialize($serialized, array $options = array()) { if (PHP_VERSION_ID >= 70000) { return \unserialize($serialized, $options); } if (!array_key_exists('allowed_classes', $options) || true === $options['allowed_classes']) { return \unserialize($serialized); } $allowedClasses = $options['allowed_classes']; if (false === $allowedClasses) { $allowedClasses = array(); } if (!is_array($allowedClasses)) { $allowedClasses = array(); trigger_error( 'unserialize(): allowed_classes option should be array or boolean', E_USER_WARNING ); } $worker = new DisallowedClassesSubstitutor($serialized, $allowedClasses); return \unserialize($worker->getSubstitutedSerialized()); } }