1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-20 19:42:09 -08:00
parent 0f4b3d29cb
commit 9880a68d4b
10 changed files with 18 additions and 22 deletions

View File

@@ -445,7 +445,7 @@ class e_array {
$first2Chars = substr($ArrayData,0,2);
if($first2Chars === 'a:' || $first2Chars === 's:') // php serialize.
{
$dat = unserialize($ArrayData);
$dat = unserialize($ArrayData, ['allowed_classes' => false]);
$ArrayData = $this->WriteArray($dat,FALSE);
}
elseif(strpos($ArrayData,'{') === 0 || strpos($ArrayData,'[') === 0) // json