diff --git a/lib/php-jwt/readme_moodle.txt b/lib/php-jwt/readme_moodle.txt index 78820d50f35..0e617030899 100644 --- a/lib/php-jwt/readme_moodle.txt +++ b/lib/php-jwt/readme_moodle.txt @@ -13,3 +13,9 @@ Instructions 4. Download the latest release. 5. Unzip it in lib as php-jwt. 6. Update entry for this library in lib/thirdpartylibs.xml. + +2023/01/26 +---------- +- src/JWT.php file has minor changes for PHP 8.2 compatibility. See MDL-76415 for more details. + Since version v6.3.1, the php-jwt already has the fix, so if someone executing the upgrading version and + it has the patch, please ignore this note. diff --git a/lib/php-jwt/src/JWT.php b/lib/php-jwt/src/JWT.php index 9964073d5ef..d047f20322c 100644 --- a/lib/php-jwt/src/JWT.php +++ b/lib/php-jwt/src/JWT.php @@ -136,7 +136,7 @@ class JWT // OpenSSL expects an ASN.1 DER sequence for ES256/ES384 signatures $sig = self::signatureToDER($sig); } - if (!self::verify("${headb64}.${bodyb64}", $sig, $key->getKeyMaterial(), $header->alg)) { + if (!self::verify("{$headb64}.{$bodyb64}", $sig, $key->getKeyMaterial(), $header->alg)) { // TODO: Remove this modification in MDL-76415. throw new SignatureInvalidException('Signature verification failed'); }