mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:05:19 +02:00
Fix php-encryption version 2 compatibility issues
This commit is contained in:
parent
b4ce07bdc5
commit
d5aff9ac31
2 changed files with 5 additions and 3 deletions
|
@ -183,7 +183,8 @@ function dfrn_notify_post(App $a) {
|
|||
break;
|
||||
case 2:
|
||||
try {
|
||||
$data = \Defuse\Crypto\Crypto::decrypt(hex2bin($data), $final_key);
|
||||
$FinalKey = \Defuse\Crypto\Key::loadFromAsciiSafeString($final_key);
|
||||
$data = \Defuse\Crypto\Crypto::decrypt(hex2bin($data), $FinalKey);
|
||||
} catch (\Defuse\Crypto\Exception\WrongKeyOrModifiedCiphertextException $ex) { // VERY IMPORTANT
|
||||
/*
|
||||
* Either:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue