From 71c87132bc64b5845ec94e919e620d106435d73b Mon Sep 17 00:00:00 2001 From: last-core <98477760+last-core@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:01:24 +0100 Subject: [PATCH] fix: replace array_key_exists with isset on proxy.php --- setup/sdk/proxy.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/sdk/proxy.tpl b/setup/sdk/proxy.tpl index 01fea23..a67ecd7 100644 --- a/setup/sdk/proxy.tpl +++ b/setup/sdk/proxy.tpl @@ -214,7 +214,7 @@ if($isVerified) { $payload_obj = json_decode($payload); - if($decrypt && array_key_exists('data', $payload_obj)) { + if($decrypt && isset($payload_obj->data)) { $token = $payload_obj->data; $keyEncryptionAlgorithmManager = new AlgorithmManager([ new A256KW() ]);