diff options
author | Mario <mario@mariovavti.com> | 2024-01-06 16:34:39 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-01-06 16:34:39 +0000 |
commit | a36de8ba1a27204667413760c53f783ba60f22a7 (patch) | |
tree | fa219c32ebe5d8cad86dccc6b26b04ed6c22145b /Zotlabs | |
parent | c73518d8ec562aed63223c668a43d9cda152cb9d (diff) | |
parent | e3d30763dabdf12f961ed3d1d7cf4eaee44c65a9 (diff) | |
download | volse-hubzilla-a36de8ba1a27204667413760c53f783ba60f22a7.tar.gz volse-hubzilla-a36de8ba1a27204667413760c53f783ba60f22a7.tar.bz2 volse-hubzilla-a36de8ba1a27204667413760c53f783ba60f22a7.zip |
Merge branch 'tests/fix-db-and-ci-integration' into 'dev'
tests: Integrate the DB in "unit" tests.
See merge request hubzilla/core!2081
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Web/HTTPSig.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index 36a00528e..439ca472b 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -27,9 +27,12 @@ class HTTPSig { * @param string $alg hash algorithm (one of 'sha256','sha512') * @return string The generated digest header string for $body */ - static function generate_digest_header($body, $alg = 'sha256') { + if ($body === null) { + $body = ''; + } + $digest = base64_encode(hash($alg, $body, true)); switch ($alg) { case 'sha512': |