]> git.mxchange.org Git - friendica.git/commitdiff
Fix warning "supplied key param cannot be coerced into a public key"
authorMichael <heluecht@pirati.ca>
Thu, 17 Dec 2020 07:07:54 +0000 (07:07 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 17 Dec 2020 07:07:54 +0000 (07:07 +0000)
src/Util/HTTPSignature.php

index 1ede550885a27117f86f089517dd749b151be270..59f4448b6743b726dbdc36657bd072eda33b8527 100644 (file)
@@ -544,7 +544,7 @@ class HTTPSignature
 
                $key = self::fetchKey($sig_block['keyId'], $actor);
 
-               if (empty($key)) {
+               if (empty($key) || empty($key['pubkey'])) {
                        return false;
                }