diff options
author | Mario <mario@mariovavti.com> | 2023-11-23 20:25:13 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-11-23 20:25:13 +0000 |
commit | 6e59d95da51dd7ba2ea4614fd22ce31dbded9b74 (patch) | |
tree | a6dc20dc204d5e1bccbf3b3deb4be905d840dbaa /Zotlabs | |
parent | 5cb1a9dcc63b751da008e21166b51fbcaf30332a (diff) | |
parent | a396e74a79238779bd7efaac0c6ae59b20d5f114 (diff) | |
download | volse-hubzilla-6e59d95da51dd7ba2ea4614fd22ce31dbded9b74.tar.gz volse-hubzilla-6e59d95da51dd7ba2ea4614fd22ce31dbded9b74.tar.bz2 volse-hubzilla-6e59d95da51dd7ba2ea4614fd22ce31dbded9b74.zip |
Merge branch 'dev' into 8.8RC
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 3 | ||||
-rw-r--r-- | Zotlabs/Web/HTTPSig.php | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 7089f043c..835909849 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -4056,6 +4056,9 @@ class Activity { } static function get_actor($actor_id) { + // remove fragment + $actor_id = ((strpos($actor_id, '#')) ? substr($actor_id, 0, strpos($actor_id, '#')) : $actor_id); + $actor = self::get_cached_actor($actor_id); if ($actor) { diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index b709d3e44..36a00528e 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -212,7 +212,8 @@ class HTTPSig { if (in_array('digest', $signed_headers)) { $result['content_signed'] = true; - $digest = explode('=', $headers['digest'], 2); + $digest = explode('=', $headers['digest'], 2); + $digest[0] = strtoupper($digest[0]); if ($digest[0] === 'SHA-256') $hashalg = 'sha256'; if ($digest[0] === 'SHA-512') |