From 918f2e8593cdf112f4d4dff665d2e084513d5b89 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 9 Nov 2017 03:01:02 -0500 Subject: [PATCH] Fix another php-encryption version migration error --- mod/dfrn_notify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index b8c771b75..731020532 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -183,7 +183,7 @@ function dfrn_notify_post(App $a) { break; case 2: try { - $FinalKey = \Defuse\Crypto\Key::loadFromAsciiSafeString($final_key); + $FinalKey = \Defuse\Crypto\Key::loadFromAsciiSafeString(bintohex($final_key)); $data = \Defuse\Crypto\Crypto::decrypt(hex2bin($data), $FinalKey); } catch (\Defuse\Crypto\Exception\WrongKeyOrModifiedCiphertextException $ex) { // VERY IMPORTANT /*