aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2023-12-26 21:59:10 +0100
committerHarald Eilertsen <haraldei@anduin.net>2023-12-26 21:59:10 +0100
commit2aa64ebdd0c794d35d66b251c5ef4272d8ab5749 (patch)
treec932a035c4358de000ada4d14a5e9e088db5433a /Zotlabs
parent19dd1fe86605bc85e8a0bf4efd6f195db258f60a (diff)
downloadvolse-hubzilla-2aa64ebdd0c794d35d66b251c5ef4272d8ab5749.tar.gz
volse-hubzilla-2aa64ebdd0c794d35d66b251c5ef4272d8ab5749.tar.bz2
volse-hubzilla-2aa64ebdd0c794d35d66b251c5ef4272d8ab5749.zip
Fix some deprecation warnings.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Web/HTTPSig.php5
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':