From 220ea6a6f605966f394e25b66464e6d0fd34eb76 Mon Sep 17 00:00:00 2001 From: Peio Rigaux Date: Wed, 17 Apr 2024 15:23:03 +0000 Subject: [PATCH] Firebase Keymap : Fix lpush param handling to support properly legacy server key --- flexiapi/app/Libraries/FlexisipPusherConnector.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flexiapi/app/Libraries/FlexisipPusherConnector.php b/flexiapi/app/Libraries/FlexisipPusherConnector.php index 12fb697..9a4de55 100644 --- a/flexiapi/app/Libraries/FlexisipPusherConnector.php +++ b/flexiapi/app/Libraries/FlexisipPusherConnector.php @@ -47,7 +47,8 @@ class FlexisipPusherConnector foreach ($firebaseKeysmap as $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; } }