]> git.mxchange.org Git - friendica.git/commitdiff
Fix another php-encryption version migration error
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 9 Nov 2017 08:01:02 +0000 (03:01 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Thu, 9 Nov 2017 08:01:02 +0000 (03:01 -0500)
mod/dfrn_notify.php

index b8c771b75a0cd6f18ee2e4af8850c714307543d7..731020532657de2550ff12e6d93d21ef3aecb284 100644 (file)
@@ -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
                                        /*