diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2023-12-17 19:30:05 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2023-12-17 19:30:05 +0100 |
commit | 9c184ddfd0e986af7bb99a45a3c7c8f1bf616035 (patch) | |
tree | 47499461f8622826cbd01aaeea84488673539aac /include | |
parent | 69266cd6c65d228320dede32a343a9d3f3ea63df (diff) | |
download | volse-hubzilla-9c184ddfd0e986af7bb99a45a3c7c8f1bf616035.tar.gz volse-hubzilla-9c184ddfd0e986af7bb99a45a3c7c8f1bf616035.tar.bz2 volse-hubzilla-9c184ddfd0e986af7bb99a45a3c7c8f1bf616035.zip |
Fix deserialization of config values broken by 69266cd6.
This should fix issue #1828.
This patch makes it explicit that we store arrays in the config as json
encoded arrays, while we allow both json encoded and PHP serialized
arrays to be deserialized correctly. Unless it's a brand new install,
the existing data in the database will be PHP serialized.
I've also added a hardening measure in case we fall back to PHP
unserialize, making sure we're not vulnerable to a PHP Object Injection
attack. This means that deserializing arrays containing PHP objects will
no longer work, but afaict we never do that anyways, so I don't think
that should break anything.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions