fix
This commit is contained in:
@@ -130,7 +130,10 @@ class Savvy extends BaseController
|
|||||||
$this->logArray($inx);
|
$this->logArray($inx);
|
||||||
// Decrypt the input
|
// Decrypt the input
|
||||||
if (isset($inx['encrypted_payload'])) {
|
if (isset($inx['encrypted_payload'])) {
|
||||||
|
log_message('critical', "API-WAS DECRYPT STARTED=>".$endpoint );
|
||||||
$payload = openssl_decrypt(hex2bin($inx['encrypted_payload']), $encryptionAlg, $encryptionKey, OPENSSL_RAW_DATA, $encryptionIV);
|
$payload = openssl_decrypt(hex2bin($inx['encrypted_payload']), $encryptionAlg, $encryptionKey, OPENSSL_RAW_DATA, $encryptionIV);
|
||||||
|
log_message('critical', "API-WAS DECRYPT END=>".$endpoint );
|
||||||
|
|
||||||
unset($inx['encrypted_payload']);
|
unset($inx['encrypted_payload']);
|
||||||
$inx = array_merge($in, json_decode($payload, true));
|
$inx = array_merge($in, json_decode($payload, true));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user