fix
This commit is contained in:
@@ -114,6 +114,15 @@ class Savvy extends BaseController
|
|||||||
// log_message('critical', json_encode($in) );
|
// log_message('critical', json_encode($in) );
|
||||||
// log_message('critical', json_encode($_POST) );
|
// log_message('critical', json_encode($_POST) );
|
||||||
$inx = $_POST;
|
$inx = $_POST;
|
||||||
|
|
||||||
|
// Decrypt the input
|
||||||
|
if (isset($inx['encrypted_payload'])) {
|
||||||
|
$payload = openssl_decrypt(hex2bin($inx['encrypted_payload']), $encryptionAlg, $encryptionKey, OPENSSL_RAW_DATA, $encryptionIV);
|
||||||
|
unset($inx['encrypted_payload']);
|
||||||
|
$inx = array_merge($in, json_decode($payload, true));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
switch ($endpoint) {
|
switch ($endpoint) {
|
||||||
case 'getdrycleanservicelist': $in["action"] = SAVVYEXT_USER_DRYCLIST;
|
case 'getdrycleanservicelist': $in["action"] = SAVVYEXT_USER_DRYCLIST;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user