aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-11-22 16:41:44 +0000
committerMario <mario@mariovavti.com>2023-11-22 16:41:44 +0000
commit80bdb39ae3fe7600d5a855ade1d4e8863ca866ee (patch)
treeb340d2b1295545cac819755bad2c5337f73897b9
parent1cfa81450cf0ce5691cdbade0a7ab4dfd76ea483 (diff)
downloadvolse-hubzilla-80bdb39ae3fe7600d5a855ade1d4e8863ca866ee.tar.gz
volse-hubzilla-80bdb39ae3fe7600d5a855ade1d4e8863ca866ee.tar.bz2
volse-hubzilla-80bdb39ae3fe7600d5a855ade1d4e8863ca866ee.zip
case insensitive digest algo
-rw-r--r--Zotlabs/Web/HTTPSig.php3
1 files changed, 2 insertions, 1 deletions
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')