mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
chore: update php and js dependencies to latest
This commit is contained in:
parent
87cc437e1e
commit
d0a94dd2cb
43 changed files with 1362 additions and 1158 deletions
|
|
@ -73,7 +73,7 @@ class HttpSignature
|
|||
}
|
||||
|
||||
// compute body digest and compare with header digest
|
||||
$bodyDigest = hash('sha256', $this->request->getBody(), true);
|
||||
$bodyDigest = hash('sha256', (string) $this->request->getBody(), true);
|
||||
$digest = 'SHA-256=' . base64_encode($bodyDigest);
|
||||
if ($digest !== $digestHeader->getValue()) {
|
||||
throw new Exception('Request digest is incorrect.');
|
||||
|
|
@ -99,7 +99,7 @@ class HttpSignature
|
|||
// Fetch the public key linked from keyId
|
||||
$actorRequest = new ActivityRequest($keyId);
|
||||
$actorResponse = $actorRequest->get();
|
||||
$actor = json_decode($actorResponse->getBody(), false, 512, JSON_THROW_ON_ERROR);
|
||||
$actor = json_decode((string) $actorResponse->getBody(), false, 512, JSON_THROW_ON_ERROR);
|
||||
|
||||
$publicKeyPem = (string) $actor->publicKey->publicKeyPem;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue