diff --git a/lib/horde/framework/Horde/Crypt/Blowfish/Php/Base.php b/lib/horde/framework/Horde/Crypt/Blowfish/Php/Base.php index 1e212bf735e..3ee9235cd47 100644 --- a/lib/horde/framework/Horde/Crypt/Blowfish/Php/Base.php +++ b/lib/horde/framework/Horde/Crypt/Blowfish/Php/Base.php @@ -328,7 +328,7 @@ abstract class Horde_Crypt_Blowfish_Php_Base for ($i = 0; $i < 18; ++$i) { $data = 0; for ($j = 4; $j > 0; --$j) { - $data = $data << 8 | ord($key{$k}); + $data = $data << 8 | ord($key[$k]); $k = ($k + 1) % $len; } $this->_P[$i] ^= $data; diff --git a/lib/horde/readme_moodle.txt b/lib/horde/readme_moodle.txt index 8d5ffab5b4a..c31e9808f95 100644 --- a/lib/horde/readme_moodle.txt +++ b/lib/horde/readme_moodle.txt @@ -15,6 +15,7 @@ Description of import of Horde libraries # Verify that these patches have been applied in the imported version. Apply them locally if not: - https://github.com/horde/Mail/pull/1 (Mail component). - https://github.com/horde/Imap_Client/pull/6 (IMAP Client component). + - https://github.com/horde/Crypt_Blowfish/pull/1 (PHP 7.4 compatibility, Crypt_Blowfish) ==== #!/bin/sh @@ -38,4 +39,4 @@ do then cp -Rf $locale/* $target/locale fi -done \ No newline at end of file +done