Skip to content

Commit

Permalink
Use unserialize without objects if available
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Dec 8, 2016
1 parent f2bfa7d commit d61dbc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/core.lib.php
Expand Up @@ -1141,5 +1141,9 @@ function PMA_safeUnserialize($data)
return null;
}

return unserialize($data);
if (PHP_VERSION_ID < 70000) {
return unserialize($data);
} else {
return unserialize($data, false);
}
}

0 comments on commit d61dbc1

Please sign in to comment.