From fdc21f26fcbd218560b358b44402ff57c21bf6bd Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 27 Nov 2023 17:04:36 +0100 Subject: [PATCH] Bugfix: json.after-* hook didn't send $aResponse as recursive array --- snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php b/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php index edad11c62..8272808e3 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/ServiceActions.php @@ -146,6 +146,8 @@ class ServiceActions } if (\is_array($aResponse)) { + // Everything must converted to array + $aResponse = \json_decode(Utils::jsonEncode($aResponse), true); $this->Plugins()->RunHook("json.after-{$sAction}", array(&$aResponse)); }