Merge pull request #9510 from JakubOnderka/redis-serialization-format

chg: [internal] Detect serialization format in RedisTool
pull/9530/head
Jakub Onderka 2024-01-28 20:43:29 +01:00 committed by GitHub
commit ac50cfc56b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -166,11 +166,7 @@ class RedisTool
return false;
}
if (self::$serializer === null) {
self::$serializer = Configure::read('MISP.redis_serializer') ?: false;
}
if (self::$serializer === 'igbinary') {
if ($string[0] === "\x00") {
return igbinary_unserialize($string);
} else {
return JsonTool::decode($string);