aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-01-02 20:38:11 +0000
committerMario <mario@mariovavti.com>2021-01-02 20:38:11 +0000
commit2862a732537bf01a2f8ac71d7c5601a50ed3be91 (patch)
tree66b666763d965a349f84877d5bb440e851db2061 /Zotlabs
parent850c3f2b6a16c2d380be03eb2d5398b482834742 (diff)
downloadvolse-hubzilla-2862a732537bf01a2f8ac71d7c5601a50ed3be91.tar.gz
volse-hubzilla-2862a732537bf01a2f8ac71d7c5601a50ed3be91.tar.bz2
volse-hubzilla-2862a732537bf01a2f8ac71d7c5601a50ed3be91.zip
fix typo
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/JSalmon.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Lib/JSalmon.php b/Zotlabs/Lib/JSalmon.php
index 48a4e649b..7f63cf914 100644
--- a/Zotlabs/Lib/JSalmon.php
+++ b/Zotlabs/Lib/JSalmon.php
@@ -40,15 +40,15 @@ class JSalmon {
$ret = [ 'results' => [] ];
if(! is_array($x)) {
- return $false;
+ return false;
}
if(! ( array_key_exists('signed',$x) && $x['signed'])) {
- return $false;
+ return false;
}
- $signed_data = preg_replace('/\s+/','',$x['data']) . '.'
- . base64url_encode($x['data_type'],true) . '.'
- . base64url_encode($x['encoding'],true) . '.'
+ $signed_data = preg_replace('/\s+/','',$x['data']) . '.'
+ . base64url_encode($x['data_type'],true) . '.'
+ . base64url_encode($x['encoding'],true) . '.'
. base64url_encode($x['alg'],true);
$key = HTTPSig::get_key(EMPTY_STR,'zot6',base64url_decode($x['sigs']['key_id']));