Skip to content

Commit

Permalink
fix: replace array_key_exists with isset on proxy.php
Browse files Browse the repository at this point in the history
  • Loading branch information
last-core committed Nov 20, 2023
1 parent b45f330 commit 71c8713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/sdk/proxy.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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() ]);
Expand Down

0 comments on commit 71c8713

Please sign in to comment.