mirror of https://github.com/MISP/MISP
Merge pull request #9510 from JakubOnderka/redis-serialization-format
chg: [internal] Detect serialization format in RedisToolpull/9530/head
commit
ac50cfc56b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue