Merge branch 'MDL-74394_311' of https://github.com/aolley/moodle into MOODLE_311_STABLE

This commit is contained in:
Ilya Tregubov
2022-04-22 08:00:52 +06:00
+1 -1
View File
@@ -259,7 +259,7 @@ function mnet_encrypt_message($message, $remote_certificate) {
// Generate a key resource from the remote_certificate text string
$publickey = openssl_get_publickey($remote_certificate);
if ( gettype($publickey) != 'resource' ) {
if ($publickey === false) {
// Remote certificate is faulty.
return false;
}