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
fix: replace array_key_exists with isset on proxy.php
  • Loading branch information
damikael authored Feb 21, 2024
2 parents fa8b811 + ea99251 commit f06b12f
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 f06b12f

Please sign in to comment.