aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Zot
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-04 22:30:55 -0700
committerzotlabs <mike@macgirvin.com>2017-09-04 22:35:54 -0700
commitd58f965b9ab58acd3f218cce3c9d428e27315045 (patch)
treed13dfac45094537efbda490dc4a1d801e9e30a52 /Zotlabs/Zot
parent83d0e48ebe4ba4b8b3ca5918bde98a1aaf005c31 (diff)
downloadvolse-hubzilla-d58f965b9ab58acd3f218cce3c9d428e27315045.tar.gz
volse-hubzilla-d58f965b9ab58acd3f218cce3c9d428e27315045.tar.bz2
volse-hubzilla-d58f965b9ab58acd3f218cce3c9d428e27315045.zip
some more prep work for Zot VI - some of this will need to be undone or at least re-arranged later but we need to bootstrap a test environment.
Diffstat (limited to 'Zotlabs/Zot')
-rw-r--r--Zotlabs/Zot/Finger.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Zot/Finger.php b/Zotlabs/Zot/Finger.php
index 865e78517..e205b136f 100644
--- a/Zotlabs/Zot/Finger.php
+++ b/Zotlabs/Zot/Finger.php
@@ -120,9 +120,10 @@ class Finger {
return $ret;
}
- $verify = \Zotlabs\Web\HTTPSig::verify($result);
-
$x = json_decode($result['body'], true);
+
+ $verify = \Zotlabs\Web\HTTPSig::verify($result,(($x) ? $x['key'] : '');
+
if($x && (! $verify['header_valid'])) {
$signed_token = ((is_array($x) && array_key_exists('signed_token', $x)) ? $x['signed_token'] : null);
if($signed_token) {