diff options
author | Andrzej Budziński <andrzej@budzinski.ovh> | 2021-02-03 15:00:24 +0100 |
---|---|---|
committer | Andrzej Budziński <andrzej@budzinski.ovh> | 2021-02-03 15:00:24 +0100 |
commit | ba73845badef5c653c05c70ca27a5b37e2f25f97 (patch) | |
tree | 6b22545076df5f80b8714f07e92a518af24f0dc5 /Zotlabs/Web/HTTPSig.php | |
parent | 7ece28b9814e6bc7ea2879335520641561dc0ba5 (diff) | |
parent | 34b28cd8d36c7805e65c442ff1588ccf5165387a (diff) | |
download | volse-hubzilla-ba73845badef5c653c05c70ca27a5b37e2f25f97.tar.gz volse-hubzilla-ba73845badef5c653c05c70ca27a5b37e2f25f97.tar.bz2 volse-hubzilla-ba73845badef5c653c05c70ca27a5b37e2f25f97.zip |
Merge branch 'dev' into translation-pl
Diffstat (limited to 'Zotlabs/Web/HTTPSig.php')
-rw-r--r-- | Zotlabs/Web/HTTPSig.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index 0b3e2bf2e..7c3903682 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -161,6 +161,8 @@ class HTTPSig { logger('verified: ' . $x, LOGGER_DEBUG); + $fetched_key = ''; + if(! $x) { // try again, ignoring the local actor (xchan) cache and refetching the key @@ -244,7 +246,7 @@ class HTTPSig { } - function convertKey($key) { + static function convertKey($key) { if(strstr($key,'RSA ')) { return rsatopem($key); @@ -267,7 +269,7 @@ class HTTPSig { * false if no pub key found, otherwise return the pub key */ - function get_activitystreams_key($id) { + static function get_activitystreams_key($id) { // remove fragment @@ -298,7 +300,7 @@ class HTTPSig { } - function get_webfinger_key($id) { + static function get_webfinger_key($id) { $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where hubloc_addr = '%s' or hubloc_id_url = '%s'", dbesc(str_replace('acct:','',$id)), @@ -333,7 +335,7 @@ class HTTPSig { return (($key['public_key']) ? $key : false); } - function get_zotfinger_key($id) { + static function get_zotfinger_key($id) { $x = q("select * from xchan left join hubloc on xchan_hash = hubloc_hash where hubloc_addr = '%s' or hubloc_id_url = '%s' and hubloc_network = 'zot6'", dbesc(str_replace('acct:','',$id)), |