Firebase Keymap : Fix lpush param handling to support properly legacy server key

This commit is contained in:
Peio Rigaux 2024-04-17 15:23:03 +00:00 committed by Timothée Jaussoin
parent fd57132d06
commit 220ea6a6f6

View file

@ -47,7 +47,8 @@ class FlexisipPusherConnector
foreach ($firebaseKeysmap as $map) { foreach ($firebaseKeysmap as $map) {
if (str_contains($map, ':')) { if (str_contains($map, ':')) {
list($id, $value) = explode(':', $map); //We put the explode limit to 2 to also support legacy firebase keys format (number:alphanum:alphanumsymb)
list($id, $value) = explode(':', $map, 2);
$pusherFirebaseKeysmap[$id] = $value; $pusherFirebaseKeysmap[$id] = $value;
} }
} }