N°9379 - PHP unserialze function - security hardening

- code review
This commit is contained in:
Benjamin DALSASS
2026-04-13 08:13:54 +02:00
parent 3debf2e11a
commit 9be12a5ab4
3 changed files with 3 additions and 3 deletions

View File

@@ -3263,7 +3263,7 @@ TXT
* @return mixed PHP @unserialise return
* @throws Exception
*/
public static function Unserialize(mixed $data, array $aOptions, bool $bThrowNotAllowedObjectClassException = true): mixed
public static function Unserialize(mixed $data, array $aOptions = ['allowed_classes' => false], bool $bThrowNotAllowedObjectClassException = true): mixed
{
$data = unserialize($data, $aOptions);