use json instead of php serialization

This commit is contained in:
Ralf Becker 2020-09-16 17:01:51 +02:00
parent da27403b1b
commit f73b8731e0

View File

@ -647,7 +647,7 @@ class infolog_so
{
$this->db->insert($this->extra_table,array(
// store multivalued CalDAV properties as serialized array, everything else get comma-separated
'info_extra_value' => is_array($val) ? ($key[1] == '#' ? serialize($val) : implode(',',$val)) : $val,
'info_extra_value' => is_array($val) ? ($key[1] == '#' ? json_encode($val) : implode(',',$val)) : $val,
),array(
'info_id' => $info_id,
'info_extra_name' => substr($key,1),